home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / sh.z / sh
Text File  |  1998-10-30  |  166KB  |  2,839 lines

  1.  
  2.  
  3.  
  4. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _ssss_hhhh_,,,, _rrrr_ssss_hhhh_,,,, _kkkk_ssss_hhhh_,,,, _rrrr_kkkk_ssss_hhhh - a standard/restricted command and programming
  10.      language
  11.  
  12. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  13.      _ssss_hhhh [ _----_aaaa_bbbb_CCCC_eeee_ffff_hhhh_iiii_kkkk_mmmm_nnnn_pppp_rrrr_ssss_tttt_uuuu_vvvv_xxxx ] [ _----_oooo _o_p_t_i_o_n ] ... [ _----_cccc _s_t_r_i_n_g ] [ _a_r_g ... ]
  14.  
  15.      ////uuuussssrrrr////lllliiiibbbb////rrrrsssshhhh  [ _----_aaaa_bbbb_CCCC_eeee_ffff_hhhh_iiii_kkkk_mmmm_nnnn_pppp_rrrr_ssss_tttt_uuuu_vvvv_xxxx ] [ _----_oooo _o_p_t_i_o_n ] ... [ _----_cccc _s_t_r_i_n_g ]
  16.           [ _a_r_g ... ]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      NNNNooootttteeee:::: As of IRIX 6.4, _ssss_hhhh is the Korn shell rather than the Bourne shell.
  20.      See _bbbb_ssss_hhhh(1) for the Bourne Shell description.  See the CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY
  21.      IIIISSSSSSSSUUUUEEEESSSS section below for more detail.
  22.  
  23.      This is the internationalized _ssss_hhhh. See the _IIII_NNNN_TTTT_EEEE_RRRR_NNNN_AAAA_TTTT_IIII_OOOO_NNNN_AAAA_LLLL_IIII_ZZZZ_AAAA_TTTT_IIII_OOOO_NNNN section
  24.      below for more detail.
  25.  
  26.      _s_h is a command and programming language that executes commands read from
  27.      a terminal or a file.  /_u_s_r/_l_i_b/_r_s_h is a restricted version of the
  28.      standard command interpreter _s_h; it is used to set up login names and
  29.      execution environments whose capabilities are more controlled than those
  30.      of the standard shell.  See IIIInnnnvvvvooooccccaaaattttiiiioooonnnn below for the meaning of arguments
  31.      to the shell.
  32.  
  33.    DDDDeeeeffffiiiinnnniiiittttiiiioooonnnnssss
  34.      A _m_e_t_a_c_h_a_r_a_c_t_e_r is one of the following characters:
  35.  
  36.           _;;;;   _&&&&   _((((   _))))   _||||   _<<<<   _>>>>   newline   space   tab
  37.  
  38.      A _b_l_a_n_k is a tab or a space.  An _i_d_e_n_t_i_f_i_e_r is a sequence of letters,
  39.      digits, or underscores starting with a letter or underscore.  Identifiers
  40.      are used as names for _f_u_n_c_t_i_o_n_s and _v_a_r_i_a_b_l_e_s.  A _w_o_r_d is a sequence of
  41.      _c_h_a_r_a_c_t_e_r_s separated by one or more non-quoted _m_e_t_a_c_h_a_r_a_c_t_e_r_s.
  42.  
  43.      A _c_o_m_m_a_n_d is a sequence of characters in the syntax of the shell
  44.      language.  The shell reads each command and carries out the desired
  45.      action either directly or by invoking separate utilities.  A special
  46.      command is a command that is carried out by the shell without creating a
  47.      separate process.  Except for documented side effects, most special
  48.      commands can be implemented as separate utilities.
  49.  
  50.    CCCCoooommmmmmmmaaaannnnddddssss
  51.      A _s_i_m_p_l_e-_c_o_m_m_a_n_d is a sequence of _b_l_a_n_k separated words which may be
  52.      preceded by a variable assignment list (see EEEEnnnnvvvviiiirrrroooonnnnmmmmeeeennnntttt below).  The
  53.      first word specifies the name of the command to be executed.  Except as
  54.      specified below, the remaining words are passed as arguments to the
  55.      invoked command.  The command name is passed as argument 0 [see _eeee_xxxx_eeee_cccc(2)].
  56.      The _v_a_l_u_e of a simple-command is its exit status if it terminates
  57.      normally, or (octal) 200+_s_t_a_t_u_s if it terminates abnormally [see
  58.      _ssss_iiii_gggg_nnnn_aaaa_llll(2) for a list of _s_t_a_t_u_s values].
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  71.  
  72.  
  73.  
  74.      A _p_i_p_e_l_i_n_e is a sequence of one or more _c_o_m_m_a_n_d_s separated by _||||.  The
  75.      standard output of each command but the last is connected by a _pppp_iiii_pppp_eeee(2) to
  76.      the standard input of the next command.  Each command is run as a
  77.      separate process; the shell waits for the last command to terminate.  The
  78.      exit status of a pipeline is the exit status of the last command.
  79.  
  80.      A _l_i_s_t is a sequence of one or more pipelines separated by _;;;;, _&&&&, _&&&&_&&&&, or
  81.      _||||_||||, and optionally terminated by _;;;;, _&&&&, or _||||_&&&&.  Of these five symbols, _;;;;,
  82.      _&&&&, and _||||_&&&& have equal precedence, which is lower than that of _&&&&_&&&& and _||||_||||.
  83.      The symbols _&&&&_&&&& and _||||_|||| also have equal precedence.  A semicolon (_;;;;) causes
  84.      sequential execution of the preceding pipeline; an ampersand (_&&&&) causes
  85.      asynchronous execution of the preceding pipeline (that is, the shell does
  86.      not wait for that pipeline to finish).  The symbol _||||_&&&& causes asynchronous
  87.      execution of the preceding command or pipeline with a two-way pipe
  88.      established to the parent shell.  The standard input and output of the
  89.      spawned command can be written to and read from by the parent shell using
  90.      the _----_pppp option of the special commands _rrrr_eeee_aaaa_dddd and _pppp_rrrr_iiii_nnnn_tttt described later.
  91.      The symbol _&&&&_&&&& (_||||_||||) causes the _l_i_s_t following it to be executed only if
  92.      the preceding pipeline returns a zero (nonzero) value.  An arbitrary
  93.      number of newlines may appear in a _l_i_s_t, instead of a semicolon, to
  94.      delimit a command.
  95.  
  96.      A _c_o_m_m_a_n_d is either a simple-command or one of the following.  Unless
  97.      otherwise stated, the value returned by a command is that of the last
  98.      simple-command executed in the command.
  99.  
  100.      _ffff_oooo_rrrr _i_d_e_n_t_i_f_i_e_r [ _iiii_nnnn _w_o_r_d ... ] _;;;; _dddd_oooo _l_i_s_t _;;;; _dddd_oooo_nnnn_eeee
  101.           Each time a _ffff_oooo_rrrr command is executed, _i_d_e_n_t_i_f_i_e_r is set to the next
  102.           _w_o_r_d taken from the _iiii_nnnn _w_o_r_d list.  If _iiii_nnnn _w_o_r_d ...  is omitted, the
  103.           _ffff_oooo_rrrr command executes the _dddd_oooo _l_i_s_t once for each positional parameter
  104.           that is set (see PPPPaaaarrrraaaammmmeeeetttteeeerrrr SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn below).  Execution ends when
  105.           there are no more words in the list.
  106.  
  107.      _ssss_eeee_llll_eeee_cccc_tttt _i_d_e_n_t_i_f_i_e_r [ _iiii_nnnn _w_o_r_d ... ] _;;;; _dddd_oooo _l_i_s_t _;;;; _dddd_oooo_nnnn_eeee
  108.           A _ssss_eeee_llll_eeee_cccc_tttt command prints on standard error (file descriptor 2), the
  109.           set of _w_o_r_ds, each preceded by a number.  If _iiii_nnnn _w_o_r_d ...  is
  110.           omitted, the positional parameters are used instead (see PPPPaaaarrrraaaammmmeeeetttteeeerrrr
  111.           SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn below).  The _PPPP_SSSS_3333 prompt is printed and a line is read
  112.           from the standard input.  If this line consists of the number of one
  113.           of the listed _w_o_r_ds, the value of the parameter _i_d_e_n_t_i_f_i_e_r is set to
  114.           the _w_o_r_d corresponding to this number.  If this line is empty the
  115.           selection list is printed again.  Otherwise the value of the
  116.           parameter _i_d_e_n_t_i_f_i_e_r is set to _nnnn_uuuu_llll_llll.  The contents of the line read
  117.           from standard input is saved in the variable _RRRR_EEEE_PPPP_LLLL_YYYY_....  The _l_i_s_t is
  118.           executed for each selection until a _bbbb_rrrr_eeee_aaaa_kkkk or end-of-file is
  119.           encountered.
  120.  
  121.      _cccc_aaaa_ssss_eeee _w_o_r_d _iiii_nnnn [ [_((((]_p_a_t_t_e_r_n [ | _p_a_t_t_e_r_n ] ... _)))) _l_i_s_t _;;;;_;;;; ] ... _eeee_ssss_aaaa_cccc
  122.           A _cccc_aaaa_ssss_eeee command executes the _l_i_s_t associated with the first _p_a_t_t_e_r_n
  123.           that matches _w_o_r_d.  The form of the patterns is the same as that
  124.           used for file-name generation (see FFFFiiiilllleeeennnnaaaammmmeeee GGGGeeeennnneeeerrrraaaattttiiiioooonnnn below).
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  137.  
  138.  
  139.  
  140.      _iiii_ffff _l_i_s_t _;;;; _tttt_hhhh_eeee_nnnn _l_i_s_t [ _eeee_llll_iiii_ffff _l_i_s_t _;;;; _tttt_hhhh_eeee_nnnn _l_i_s_t ] ... [ _;;;; _eeee_llll_ssss_eeee _l_i_s_t ] _;;;; _ffff_iiii
  141.           The _l_i_s_t following _iiii_ffff is executed and, if it returns a zero exit
  142.           status, the _l_i_s_t following the first _tttt_hhhh_eeee_nnnn is executed.  Otherwise,
  143.           the _l_i_s_t following _eeee_llll_iiii_ffff is executed and, if its value is zero, the
  144.           _l_i_s_t following the next _tttt_hhhh_eeee_nnnn is executed.  Failing that, the _eeee_llll_ssss_eeee
  145.           _l_i_s_t is executed.  If no _eeee_llll_ssss_eeee _l_i_s_t or _tttt_hhhh_eeee_nnnn _l_i_s_t is executed, the _iiii_ffff
  146.           command returns a zero exit status.
  147.  
  148.      _wwww_hhhh_iiii_llll_eeee _l_i_s_t _;;;; _dddd_oooo _l_i_s_t _;;;; _dddd_oooo_nnnn_eeee
  149.      _uuuu_nnnn_tttt_iiii_llll _l_i_s_t _;;;; _dddd_oooo _l_i_s_t _;;;; _dddd_oooo_nnnn_eeee
  150.           A _wwww_hhhh_iiii_llll_eeee command repeatedly executes the _wwww_hhhh_iiii_llll_eeee _l_i_s_t and, if the exit
  151.           status of the last command in the list is zero, executes the _dddd_oooo
  152.           _l_i_s_t; otherwise the loop terminates.  If no commands in the _dddd_oooo _l_i_s_t
  153.           are executed, the _wwww_hhhh_iiii_llll_eeee command returns a zero exit status; _uuuu_nnnn_tttt_iiii_llll
  154.           may be used in place of _wwww_hhhh_iiii_llll_eeee to negate the loop termination test.
  155.  
  156.      _((((_l_i_s_t_))))
  157.           Execute _l_i_s_t in a separate environment.  Note, that if two adjacent
  158.           open parentheses are needed for nesting, a space must be inserted to
  159.           avoid arithmetic evaluation as described below.
  160.  
  161.      _{{{{ _l_i_s_t_;;;;_}}}}
  162.           _l_i_s_t is simply executed.  The _{{{{ must be followed by a space.  Note
  163.           that unlike the metacharacters _(((( and _)))), _{{{{ and _}}}} are _r_e_s_e_r_v_e_d _w_o_r_ds
  164.           and must be typed at the beginning of a line or after a _;;;; in order
  165.           to be recognized.
  166.  
  167.      _[[[[_[[[[_e_x_p_r_e_s_s_i_o_n_]]]]_]]]]
  168.           Evaluates _e_x_p_r_e_s_s_i_o_n and returns a zero exit status when _e_x_p_r_e_s_s_i_o_n
  169.           is true.  See CCCCoooonnnnddddiiiittttiiiioooonnnnaaaallll EEEExxxxpppprrrreeeessssssssiiiioooonnnnssss below, for a description of
  170.           _e_x_p_r_e_s_s_i_o_n.
  171.  
  172.      _ffff_uuuu_nnnn_cccc_tttt_iiii_oooo_nnnn _i_d_e_n_t_i_f_i_e_r _{{{{ _l_i_s_t_;;;;_}}}}
  173.      _i_d_e_n_t_i_f_i_e_r _((((_)))) _{{{{ _l_i_s_t_;;;;_}}}}
  174.           Define a function which is referenced by _i_d_e_n_t_i_f_i_e_r.  The body of
  175.           the function is the _l_i_s_t of commands between _{{{{ and _}}}} (see FFFFuuuunnnnccccttttiiiioooonnnnssss
  176.           below).  The _{{{{ must be followed by a space.
  177.  
  178.      _tttt_iiii_mmmm_eeee _p_i_p_e_l_i_n_e
  179.           The _p_i_p_e_l_i_n_e is executed and the elapsed time as well as the user
  180.           and system time are printed on standard error.  Note that the
  181.           reported times reflect the elapsed time for both the parent and the
  182.           child processes in order to give a more accurate view of the total
  183.           time the _p_i_p_e_l_i_n_e took to execute.
  184.  
  185.      The following reserved words are only recognized as the first word of a
  186.      command and when not quoted:
  187.  
  188.           _iiii_ffff _tttt_hhhh_eeee_nnnn _eeee_llll_ssss_eeee _eeee_llll_iiii_ffff _ffff_iiii _cccc_aaaa_ssss_eeee _eeee_ssss_aaaa_cccc _ffff_oooo_rrrr _wwww_hhhh_iiii_llll_eeee _uuuu_nnnn_tttt_iiii_llll _dddd_oooo _dddd_oooo_nnnn_eeee _{{{{ _}}}}
  189.           _ffff_uuuu_nnnn_cccc_tttt_iiii_oooo_nnnn _ssss_eeee_llll_eeee_cccc_tttt _tttt_iiii_mmmm_eeee _[[[[_[[[[ _]]]]_]]]]
  190.  
  191.  
  192.  
  193.  
  194.  
  195.                                                                         PPPPaaaaggggeeee 3333
  196.  
  197.  
  198.  
  199.  
  200.  
  201.  
  202. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  203.  
  204.  
  205.  
  206.    CCCCoooommmmmmmmeeeennnnttttssss
  207.      A word beginning with _#### causes that word and all the following characters
  208.      up to a newline to be ignored.
  209.  
  210.    AAAAlllliiiiaaaassssiiiinnnngggg
  211.      The first word of each command is replaced by the text of an _aaaa_llll_iiii_aaaa_ssss if an
  212.      _aaaa_llll_iiii_aaaa_ssss for this word has been defined.  An alias name consists of any
  213.      number of characters excluding meta-characters, quoting characters, file
  214.      expansion characters, parameter and command substitution characters and
  215.      _====.  The replacement string can contain any valid shell script including
  216.      the metacharacters listed above.  The first word of each command in the
  217.      replaced text, other than any that are in the process of being replaced,
  218.      is tested for aliases.  If the last character of the alias value is a
  219.      _b_l_a_n_k the word following the alias is also checked for alias
  220.      substitution.  Aliases can be used to redefine special builtin commands
  221.      but cannot be used to redefine the reserved words listed above.  Aliases
  222.      can be created, listed, and exported with the _aaaa_llll_iiii_aaaa_ssss command and can be
  223.      removed with the _uuuu_nnnn_aaaa_llll_iiii_aaaa_ssss command.  Exported aliases remain in effect for
  224.      scripts invoked by name, but must be reinitialized for separate
  225.      invocations of the shell (see IIIInnnnvvvvooooccccaaaattttiiiioooonnnn below).
  226.  
  227.      _A_l_i_a_s_i_n_g is performed when scripts are read, not while they are executed.
  228.      Therefore, for an alias to take effect the _aaaa_llll_iiii_aaaa_ssss definition command has
  229.      to be executed before the command which references the alias is read.
  230.  
  231.      Aliases are frequently used as a short hand for full pathnames.  An
  232.      option to the aliasing facility allows the value of the alias to be
  233.      automatically set to the full pathname of the corresponding command.
  234.      These aliases are called tracked aliases.  The value of a tracked alias
  235.      is defined the first time the corresponding command is looked up and
  236.      becomes undefined each time the _PPPP_AAAA_TTTT_HHHH variable is reset.  These aliases
  237.      remain tracked so that the next subsequent reference redefines the value.
  238.      Several tracked aliases are compiled into the shell.  The _----_hhhh option of
  239.      the _ssss_eeee_tttt command makes each referenced command name into a tracked alias.
  240.  
  241.      The following _e_x_p_o_r_t_e_d _a_l_i_a_s_e_s are compiled into the shell but can be
  242.      unset or redefined:
  243.  
  244.           _aaaa_uuuu_tttt_oooo_llll_oooo_aaaa_dddd_====_''''_tttt_yyyy_pppp_eeee_ssss_eeee_tttt _----_ffff_uuuu_''''
  245.           _ffff_aaaa_llll_ssss_eeee_====_''''_llll_eeee_tttt _0000_''''
  246.           _ffff_uuuu_nnnn_cccc_tttt_iiii_oooo_nnnn_ssss_====_''''_tttt_yyyy_pppp_eeee_ssss_eeee_tttt _----_ffff_''''
  247.           _hhhh_aaaa_ssss_hhhh_====_''''_aaaa_llll_iiii_aaaa_ssss _----_tttt_''''
  248.           _hhhh_iiii_ssss_tttt_oooo_rrrr_yyyy_====_''''_ffff_cccc _----_llll_''''
  249.           _iiii_nnnn_tttt_eeee_gggg_eeee_rrrr_====_''''_tttt_yyyy_pppp_eeee_ssss_eeee_tttt _----_iiii_''''
  250.           _nnnn_oooo_hhhh_uuuu_pppp_====_''''_nnnn_oooo_hhhh_uuuu_pppp _''''
  251.           _rrrr_====_''''_ffff_cccc _----_eeee _----_''''
  252.           _tttt_rrrr_uuuu_eeee_====_''''_::::_''''
  253.           _tttt_yyyy_pppp_eeee_====_''''_wwww_hhhh_eeee_nnnn_cccc_eeee _----_vvvv_''''
  254.  
  255.  
  256.  
  257.  
  258.  
  259.  
  260.  
  261.                                                                         PPPPaaaaggggeeee 4444
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  269.  
  270.  
  271.  
  272.    TTTTiiiillllddddeeee SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn
  273.      After alias substitution is performed, each word is checked to see if it
  274.      begins with an unquoted _~~~~.  If it does, the word up to a _//// is checked to
  275.      see if it matches a user name in the _////_eeee_tttt_cccc_////_pppp_aaaa_ssss_ssss_wwww_dddd file.  If a match is
  276.      found, the _~~~~ and the matched login name is replaced by the login
  277.      directory of the matched user.  This is called a _t_i_l_d_e substitution.  If
  278.      no match is found, the original text is left unchanged.  A _~~~~ by itself,
  279.      or in front of a _////, is replaced by _$$$$_HHHH_OOOO_MMMM_EEEE.  A _~~~~ followed by a _++++ or _---- is
  280.      replaced by _$$$$_PPPP_WWWW_DDDD and _$$$$_OOOO_LLLL_DDDD_PPPP_WWWW_DDDD respectively.
  281.  
  282.      In addition, _t_i_l_d_e substitution is attempted when the value of a _v_a_r_i_a_b_l_e
  283.      _a_s_s_i_g_n_m_e_n_t begins with a _~~~~.
  284.  
  285.    CCCCoooommmmmmmmaaaannnndddd SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn
  286.      The standard output from a command enclosed in parentheses preceded by a
  287.      dollar sign ( _$$$$_((((_)))) ) or a pair of grave accents (_````_````) may be used as part
  288.      or all of a word; trailing newlines are removed.  In the second (archaic)
  289.      form, the string between the quotes is processed for special quoting
  290.      characters before the command is executed (see QQQQuuuuoooottttiiiinnnngggg below).  The
  291.      command substitution _$$$$_((((_cccc_aaaa_tttt _ffff_iiii_llll_eeee_)))) can be replaced by the equivalent but
  292.      faster _$$$$_((((_<<<<_ffff_iiii_llll_eeee_)))).  Command substitution of most special commands that do
  293.      not perform input/output redirection are carried out without creating a
  294.      separate process.
  295.  
  296.      An arithmetic expression enclosed in double parentheses and preceded by a
  297.      dollar sign [_$$$$_((((_((((_))))_))))] is replaced by the value of the arithmetic expression
  298.      within the double parentheses.
  299.  
  300.    PPPPaaaarrrraaaammmmeeeetttteeeerrrr SSSSuuuubbbbssssttttiiiittttuuuuttttiiiioooonnnn
  301.      A _p_a_r_a_m_e_t_e_r is an _i_d_e_n_t_i_f_i_e_r, one or more digits, or any of the
  302.      characters _****, _@@@@, _####, _????, _----, _$$$$, and _!!!!.  A _v_a_r_i_a_b_l_e (a parameter denoted by
  303.      an identifier) has a _v_a_l_u_e and zero or more _a_t_t_r_i_b_u_t_e_s.  _V_a_r_i_a_b_l_e_s can be
  304.      assigned _vvvv_aaaa_llll_uuuu_eeee_ssss and _a_t_t_r_i_b_u_t_e_s by using the _tttt_yyyy_pppp_eeee_ssss_eeee_tttt special command.  The
  305.      attributes supported by the shell are described later with the _tttt_yyyy_pppp_eeee_ssss_eeee_tttt
  306.      special command.  Exported parameters pass values and attributes to the
  307.      environment.
  308.  
  309.      The shell supports a one-dimensional array facility.  An element of an
  310.      array variable is referenced by a _s_u_b_s_c_r_i_p_t.  A _s_u_b_s_c_r_i_p_t is denoted by a
  311.      _[[[[, followed by an _a_r_i_t_h_m_e_t_i_c _e_x_p_r_e_s_s_i_o_n (see AAAArrrriiiitttthhhhmmmmeeeettttiiiicccc EEEEvvvvaaaalllluuuuaaaattttiiiioooonnnn below)
  312.      followed by a _]]]].  To assign values to an array, use
  313.  
  314.           _ssss_eeee_tttt _----_AAAA _n_a_m_e _v_a_l_u_e _...._...._....
  315.  
  316.      The value of all subscripts must be in the range of 0 through 1023.
  317.      Arrays need not be declared.  Any reference to a variable with a valid
  318.      subscript is legal and an array is created if necessary.  Referencing an
  319.      array without a subscript is equivalent to referencing the element zero.
  320.  
  321.      The _v_a_l_u_e of a _v_a_r_i_a_b_l_e may also be assigned by writing:
  322.  
  323.  
  324.  
  325.  
  326.  
  327.                                                                         PPPPaaaaggggeeee 5555
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  335.  
  336.  
  337.  
  338.           _n_a_m_e_====_v_a_l_u_e [ _n_a_m_e_====_v_a_l_u_e ] ...
  339.  
  340.      If the integer attribute, _----_iiii, is set for _n_a_m_e the _v_a_l_u_e is subject to
  341.      arithmetic evaluation as described below.
  342.  
  343.      Positional parameters, parameters denoted by a number, may be assigned
  344.      values with the _ssss_eeee_tttt special command.  Parameter _$$$$_0000 is set from argument
  345.      zero when the shell is invoked.
  346.  
  347.      The character _$$$$ is used to introduce substitutable _p_a_r_a_m_e_t_e_r_s.
  348.  
  349.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_}}}}
  350.           The shell reads all the characters from _$$$$_{{{{ to the matching _}}}} as part
  351.           of the same word even if it contains braces or metacharacters.  The
  352.           value, if any, of the parameter is substituted.  The braces are
  353.           required when _p_a_r_a_m_e_t_e_r is followed by a letter, digit, or
  354.           underscore that is not to be interpreted as part of its name or when
  355.           a variable is subscripted.  If _p_a_r_a_m_e_t_e_r is one or more digits it is
  356.           a positional parameter.  A positional parameter of more than one
  357.           digit must be enclosed in braces.  If _p_a_r_a_m_e_t_e_r is _**** or _@@@@, all the
  358.           positional parameters, starting with _$$$$_1111, are substituted (separated
  359.           by a field separator character).  If an array _i_d_e_n_t_i_f_i_e_r with
  360.           subscript _**** or _@@@@ is used, the value for each of the elements is
  361.           substituted (separated by a field separator character).
  362.  
  363.      _$$$$_{{{{_####_p_a_r_a_m_e_t_e_r_}}}}
  364.           If _p_a_r_a_m_e_t_e_r is _**** or _@@@@, the number of positional parameters is
  365.           substituted.  Otherwise, the length of the value of the _p_a_r_a_m_e_t_e_r is
  366.           substituted.
  367.  
  368.      _$$$$_{{{{_####_i_d_e_n_t_i_f_i_e_r_[[[[_****_]]]]_}}}}
  369.           The number of elements in the array _i_d_e_n_t_i_f_i_e_r is substituted.
  370.  
  371.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_::::_----_w_o_r_d_}}}}
  372.           If _p_a_r_a_m_e_t_e_r is set and is non-null, substitute its value; otherwise
  373.           substitute _w_o_r_d.
  374.  
  375.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_::::_====_w_o_r_d_}}}}
  376.           If _p_a_r_a_m_e_t_e_r is not set or is null, set it to _w_o_r_d; the value of the
  377.           parameter is substituted.  Positional parameters may not be assigned
  378.           to in this way.
  379.  
  380.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_::::_????_w_o_r_d_}}}}
  381.           If _p_a_r_a_m_e_t_e_r is set and is non-null, substitute its value;
  382.           otherwise, print _w_o_r_d and exit from the shell.  If _w_o_r_d is omitted,
  383.           a standard message is printed.
  384.  
  385.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_::::_++++_w_o_r_d_}}}}
  386.           If _p_a_r_a_m_e_t_e_r is set and is non-null, substitute _w_o_r_d; otherwise
  387.           substitute nothing.
  388.  
  389.  
  390.  
  391.  
  392.  
  393.                                                                         PPPPaaaaggggeeee 6666
  394.  
  395.  
  396.  
  397.  
  398.  
  399.  
  400. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  401.  
  402.  
  403.  
  404.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_####_p_a_t_t_e_r_n_}}}}
  405.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_####_####_p_a_t_t_e_r_n_}}}}
  406.           If the shell _p_a_t_t_e_r_n matches the beginning of the value of
  407.           _p_a_r_a_m_e_t_e_r, the value of this substitution is the value of the
  408.           _p_a_r_a_m_e_t_e_r with the matched portion deleted; otherwise the value of
  409.           this _p_a_r_a_m_e_t_e_r is substituted.  In the first form the smallest
  410.           matching pattern is deleted and in the second form the largest
  411.           matching pattern is deleted.
  412.  
  413.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_%%%%_p_a_t_t_e_r_n_}}}}
  414.      _$$$$_{{{{_p_a_r_a_m_e_t_e_r_%%%%_%%%%_p_a_t_t_e_r_n_}}}}
  415.           If the shell _p_a_t_t_e_r_n matches the end of the value of _p_a_r_a_m_e_t_e_r, the
  416.           value of this substitution is the value of the _p_a_r_a_m_e_t_e_r with the
  417.           matched part deleted; otherwise substitute the value of _p_a_r_a_m_e_t_e_r.
  418.           In the first form the smallest matching pattern is deleted and in
  419.           the second form the largest matching pattern is deleted.
  420.  
  421.      In the above, _w_o_r_d is not evaluated unless it is to be used as the
  422.      substituted string, so that, in the following example, _pppp_wwww_dddd is executed
  423.      only if _dddd is not set or is null:
  424.  
  425.           _eeee_cccc_hhhh_oooo _$$$$_{{{{_dddd_::::_----_$$$$_((((_pppp_wwww_dddd_))))_}}}}
  426.  
  427.      If the colon (_::::) is omitted from the above expressions, the shell only
  428.      checks whether _p_a_r_a_m_e_t_e_r is set or not.
  429.  
  430.      The following parameters are automatically set by the shell:
  431.  
  432.      _####        The number of positional parameters in decimal.
  433.  
  434.      _----        Flags supplied to the shell on invocation or by the _ssss_eeee_tttt command.
  435.  
  436.      _????        The decimal value returned by the last executed command.
  437.  
  438.      _$$$$        The process number of this shell.
  439.  
  440.      _____        Initially, the value _____ is an absolute pathname of the shell or
  441.               script being executed as passed in the _e_n_v_i_r_o_n_m_e_n_t.
  442.               Subsequently it is assigned the last argument of the previous
  443.               command.  This parameter is not set for commands which are
  444.               asynchronous.  This parameter is also used to hold the name of
  445.               the matching _MMMM_AAAA_IIII_LLLL file when checking for mail.
  446.  
  447.      _!!!!        The process number of the last background command invoked.
  448.  
  449.      _EEEE_RRRR_RRRR_NNNN_OOOO    The value of _e_r_r_n_o as set by the most recently failed system
  450.               call.  This value is system dependent and is intended for
  451.               debugging purposes.
  452.  
  453.      _LLLL_IIII_NNNN_EEEE_NNNN_OOOO   The line number of the current line within the script or
  454.               function being executed.
  455.  
  456.  
  457.  
  458.  
  459.                                                                         PPPPaaaaggggeeee 7777
  460.  
  461.  
  462.  
  463.  
  464.  
  465.  
  466. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  467.  
  468.  
  469.  
  470.      _OOOO_LLLL_DDDD_PPPP_WWWW_DDDD   The previous working directory set by the _cccc_dddd command.
  471.  
  472.      _OOOO_PPPP_TTTT_AAAA_RRRR_GGGG   The value of the last option argument processed by the _gggg_eeee_tttt_oooo_pppp_tttt_ssss
  473.               special command.
  474.  
  475.      _OOOO_PPPP_TTTT_IIII_NNNN_DDDD   The index of the last option argument processed by the _gggg_eeee_tttt_oooo_pppp_tttt_ssss
  476.               special command.
  477.  
  478.      _PPPP_PPPP_IIII_DDDD     The process number of the parent of the shell.
  479.  
  480.      _PPPP_WWWW_DDDD      The present working directory set by the _cccc_dddd command.
  481.  
  482.      _RRRR_AAAA_NNNN_DDDD_OOOO_MMMM   Each time this variable is referenced, a random integer,
  483.               uniformly distributed between 0 and 32767, is generated.  The
  484.               sequence of random numbers can be initialized by assigning a
  485.               numeric value to _RRRR_AAAA_NNNN_DDDD_OOOO_MMMM.
  486.  
  487.      _RRRR_EEEE_PPPP_LLLL_YYYY    This variable is set by the _ssss_eeee_llll_eeee_cccc_tttt statement and by the _rrrr_eeee_aaaa_dddd
  488.               special command when no arguments are supplied.
  489.  
  490.      _SSSS_EEEE_CCCC_OOOO_NNNN_DDDD_SSSS  Each time this variable is referenced, the number of seconds
  491.               since shell invocation is returned.  If this variable is
  492.               assigned a value, the value returned upon reference is the value
  493.               that was assigned plus the number of seconds since the
  494.               assignment.
  495.  
  496.      The following variables are used by the shell:
  497.  
  498.      _CCCC_DDDD_PPPP_AAAA_TTTT_HHHH      The search path for the _cccc_dddd command.
  499.  
  500.      _CCCC_OOOO_LLLL_UUUU_MMMM_NNNN_SSSS     If this variable is set, the value is used to define the
  501.                  width of the edit window for the shell edit modes and for
  502.                  printing _ssss_eeee_llll_eeee_cccc_tttt lists.
  503.  
  504.      _EEEE_DDDD_IIII_TTTT_OOOO_RRRR      If the value of this variable ends in _e_m_a_c_s, or _vvvv_iiii and the
  505.                  _VVVV_IIII_SSSS_UUUU_AAAA_LLLL variable is not set, the corresponding option (see
  506.                  special command _ssss_eeee_tttt below) is turned on.
  507.  
  508.      _EEEE_NNNN_VVVV         If this variable is set, parameter substitution is performed
  509.                  on the value to generate the pathname of the script that will
  510.                  be executed when the _s_h_e_l_l is invoked (see Invocation below).
  511.                  This file is typically used for _a_l_i_a_s and _f_u_n_c_t_i_o_n
  512.                  definitions.
  513.  
  514.      _FFFF_CCCC_EEEE_DDDD_IIII_TTTT      The default editor name for the _ffff_cccc command.
  515.  
  516.      _FFFF_PPPP_AAAA_TTTT_HHHH       The search path for function definitions.  This path is
  517.                  searched when a function with the _----_uuuu attribute is referenced
  518.                  and when a command is not found.  If an executable file is
  519.                  found, it is read and executed in the current environment.
  520.  
  521.  
  522.  
  523.  
  524.  
  525.                                                                         PPPPaaaaggggeeee 8888
  526.  
  527.  
  528.  
  529.  
  530.  
  531.  
  532. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  533.  
  534.  
  535.  
  536.      _IIII_FFFF_SSSS         Internal field separators (normally space, tab, and newline)
  537.                  used to separate command words that result from command or
  538.                  parameter substitution and for separating words with the
  539.                  special command _rrrr_eeee_aaaa_dddd.  The first character of the _IIII_FFFF_SSSS
  540.                  variable is used to separate arguments for the _""""_$$$$_****_""""
  541.                  substitution (see Quoting below).
  542.  
  543.      _HHHH_IIII_SSSS_TTTT_FFFF_IIII_LLLL_EEEE    If this variable is set when the shell is invoked, the value
  544.                  is the pathname of the file that is used to store the command
  545.                  history (see Command re-entry below).
  546.  
  547.      _HHHH_IIII_SSSS_TTTT_SSSS_IIII_ZZZZ_EEEE    If this variable is set when the shell is invoked, the number
  548.                  of previously entered commands that are accessible by this
  549.                  shell is greater than or equal to this number.  The default
  550.                  is 128.
  551.  
  552.      _HHHH_OOOO_MMMM_EEEE        The default argument (home directory) for the _cccc_dddd command.
  553.  
  554.      _LLLL_IIII_NNNN_EEEE_SSSS       If this variable is set, the value is used to determine the
  555.                  column length for printing _ssss_eeee_llll_eeee_cccc_tttt lists.  Select lists print
  556.                  vertically until about two-thirds of _LLLL_IIII_NNNN_EEEE_SSSS lines are filled.
  557.  
  558.      _MMMM_AAAA_IIII_LLLL        If this variable is set to the name of a mail file _a_n_d the
  559.                  _MMMM_AAAA_IIII_LLLL_PPPP_AAAA_TTTT_HHHH variable is not set, the shell informs the user of
  560.                  arrival of mail in the specified file.
  561.  
  562.      _MMMM_AAAA_IIII_LLLL_CCCC_HHHH_EEEE_CCCC_KKKK   This variable specifies how often (in seconds) the shell
  563.                  checks for changes in the modification time of any of the
  564.                  files specified by the _MMMM_AAAA_IIII_LLLL_PPPP_AAAA_TTTT_HHHH or _MMMM_AAAA_IIII_LLLL variables.  The
  565.                  default value is 600 seconds.  When the time has elapsed, the
  566.                  shell checks before issuing the next prompt.
  567.  
  568.      _MMMM_AAAA_IIII_LLLL_PPPP_AAAA_TTTT_HHHH    A colon ( _:::: ) separated list of filenames.  If this variable
  569.                  is set the shell informs the user of any modifications to the
  570.                  specified files that have occurred within the last _MMMM_AAAA_IIII_LLLL_CCCC_HHHH_EEEE_CCCC_KKKK
  571.                  seconds.  Each filename can be followed by a _????  and a message
  572.                  that is printed.  The message undergoes parameter
  573.                  substitution with the variable, _$$$$_____ defined as the name of the
  574.                  file that has changed.  The default message is _yyyy_oooo_uuuu _hhhh_aaaa_vvvv_eeee _mmmm_aaaa_iiii_llll
  575.                  _iiii_nnnn _$$$$_____.
  576.  
  577.      _PPPP_AAAA_TTTT_HHHH        The search path for commands (see Execution below).  The user
  578.                  may not change _PPPP_AAAA_TTTT_HHHH if executing under _rrrr_ssss_hhhh (except in
  579.                  _...._pppp_rrrr_oooo_ffff_iiii_llll_eeee).
  580.  
  581.      _PPPP_SSSS_1111         The value of this variable is expanded for parameter
  582.                  substitution to define the primary prompt string which by
  583.                  default is ``_$$$$ ''.  The character _!!!!  in the primary prompt
  584.                  string is replaced by the _c_o_m_m_a_n_d number (see Command Re-
  585.                  entry below).
  586.  
  587.  
  588.  
  589.  
  590.  
  591.                                                                         PPPPaaaaggggeeee 9999
  592.  
  593.  
  594.  
  595.  
  596.  
  597.  
  598. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  599.  
  600.  
  601.  
  602.      _PPPP_SSSS_2222         Secondary prompt string, by default ``_>>>> ''.
  603.  
  604.      _PPPP_SSSS_3333         Selection prompt string used within a _ssss_eeee_llll_eeee_cccc_tttt loop, by default
  605.                  ``_####_???? ''.
  606.  
  607.      _PPPP_SSSS_4444         The value of this variable is expanded for parameter
  608.                  substitution and precedes each line of an execution trace.
  609.                  If omitted, the execution trace prompt is ``_++++ ''.
  610.  
  611.      _SSSS_HHHH_EEEE_LLLL_LLLL       The pathname of the _s_h_e_l_l is kept in the environment.  At
  612.                  invocation, if the basename of this variable matches the
  613.                  pattern _****_rrrr_****_ssss_hhhh, the shell becomes restricted.
  614.  
  615.      _TTTT_MMMM_OOOO_UUUU_TTTT       If set to a value greater than zero, the shell terminates if
  616.                  a command is not entered within the prescribed number of
  617.                  seconds after issuing the _PPPP_SSSS_1111 prompt.  (Note that the shell
  618.                  can be compiled with a maximum bound for this value which
  619.                  cannot be exceeded.)
  620.  
  621.      _VVVV_IIII_SSSS_UUUU_AAAA_LLLL      If the value of this variable ends in _e_m_a_c_s, or _vvvv_iiii the
  622.                  corresponding option (see special command _ssss_eeee_tttt below) is
  623.                  turned on.
  624.  
  625.      ______XXXX_PPPP_GGGG        The value of this variable controls certain features of the
  626.                  shell. The default value is 0 (zero).  (See the _CCCC_OOOO_MMMM_PPPP_AAAA_TTTT_IIII_BBBB_IIII_LLLL_IIII_TTTT_YYYY
  627.                  _IIII_SSSS_SSSS_UUUU_EEEE_SSSS section at the end of this document)
  628.  
  629.      The shell gives default values to _PPPP_AAAA_TTTT_HHHH, _PPPP_SSSS_1111, _PPPP_SSSS_2222, _MMMM_AAAA_IIII_LLLL_CCCC_HHHH_EEEE_CCCC_KKKK, ______XXXX_PPPP_GGGG, _TTTT_MMMM_OOOO_UUUU_TTTT
  630.      and _IIII_FFFF_SSSS.  _HHHH_OOOO_MMMM_EEEE, _MMMM_AAAA_IIII_LLLL and _SSSS_HHHH_EEEE_LLLL_LLLL are set by _llll_oooo_gggg_iiii_nnnn(1).
  631.  
  632.    BBBBllllaaaannnnkkkk IIIInnnntttteeeerrrrpppprrrreeeettttaaaattttiiiioooonnnn
  633.      After parameter and command substitution, the results of substitutions
  634.      are scanned for the field separator characters ( those found in _IIII_FFFF_SSSS ) and
  635.      split into distinct arguments where such characters are found.  Explicit
  636.      null arguments (_""""_"""" or _''''_'''') are retained.  Implicit null arguments (those
  637.      resulting from _p_a_r_a_m_e_t_e_r_s that have no values) are removed.
  638.  
  639.    FFFFiiiilllleeeennnnaaaammmmeeee GGGGeeeennnneeeerrrraaaattttiiiioooonnnn
  640.      Following substitution, each command _w_o_r_d is scanned for the characters
  641.      _****, _????, and _[[[[ unless the _----_ffff option has been _ssss_eeee_tttt.  If one of these
  642.      characters appears, the word is regarded as a _p_a_t_t_e_r_n.  The word is
  643.      replaced with lexicographically sorted filenames that match the pattern.
  644.      If no filename is found that matches the pattern, the word is left
  645.      unchanged.  When a _p_a_t_t_e_r_n is used for filename generation, the character
  646.      _....  at the start of a filename or immediately following a _////, as well as
  647.      the character _//// itself, must be matched explicitly.  In other instances
  648.      of pattern matching the _//// and _....  are not treated specially.
  649.  
  650.      _****       Matches any string, including the null string.
  651.  
  652.  
  653.  
  654.  
  655.  
  656.  
  657.                                                                        PPPPaaaaggggeeee 11110000
  658.  
  659.  
  660.  
  661.  
  662.  
  663.  
  664. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  665.  
  666.  
  667.  
  668.      _????       Matches any single character.
  669.  
  670.      _[[[[..._]]]]   Matches any one of the enclosed characters.  A pair of characters
  671.              separated by _---- matches any character lexically between the pair,
  672.              inclusive.  If the first character following the opening "[ " is
  673.              a "!" any character not enclosed is matched.  A _---- can be included
  674.              in the character set by putting it as the first or last
  675.              character.
  676.  
  677.      A _p_a_t_t_e_r_n-_l_i_s_t is a list of one or more patterns separated from each
  678.      other with a _||||.  Composite patterns can be formed with one or more of the
  679.      following:
  680.  
  681.      _????_((((_p_a_t_t_e_r_n-_l_i_s_t_))))   Optionally matches any one of the given patterns.
  682.  
  683.      _****_((((_p_a_t_t_e_r_n-_l_i_s_t_))))   Matches zero or more occurrences of the given patterns.
  684.  
  685.      _++++_((((_p_a_t_t_e_r_n-_l_i_s_t_))))   Matches one or more occurrences of the given patterns.
  686.  
  687.      _@@@@_((((_p_a_t_t_e_r_n-_l_i_s_t_))))   Matches exactly one of the given patterns.
  688.  
  689.      _!!!!_((((_p_a_t_t_e_r_n-_l_i_s_t_))))   Matches anything, except one of the given patterns.
  690.  
  691.    QQQQuuuuoooottttiiiinnnngggg
  692.      Each of the _m_e_t_a_c_h_a_r_a_c_t_e_r_s listed above (see Definitions above) has a
  693.      special meaning to the shell and causes termination of a word unless
  694.      quoted.  A character may be _q_u_o_t_e_d (that is, made to stand for itself) by
  695.      preceding it with a _\\\\.  The pair _\\\\_nnnn_eeee_wwww_llll_iiii_nnnn_eeee is removed.  All characters
  696.      enclosed between a pair of single quote marks (_''''_''''), are quoted.  A single
  697.      quote cannot appear within single quotes.  Inside double quote marks
  698.      (_""""_""""), parameter and command substitution occurs and _\\\\ quotes the
  699.      characters _\\\\, _````, _"""", and _$$$$.  The meaning of _$$$$_**** and _$$$$_@@@@ is identical when
  700.      not quoted or when used as a variable assignment value or as a filename.
  701.      However, when used as a command argument, _""""_$$$$_****_"""" is equivalent to
  702.      _""""_$$$$_1111_d_$$$$_2222_d..._"""", where _d is the first character of the _IIII_FFFF_SSSS variable, whereas
  703.      _""""_$$$$_@@@@_"""" is equivalent to _""""_$$$$_1111_""""_d_""""_$$$$_2222_""""_d_...._...._.... .  Inside grave quote marks (_````_````) _\\\\
  704.      quotes the characters _\\\\, _````, and _$$$$.  If the grave quotes occur within
  705.      double quotes, _\\\\ also quotes the character _"""".
  706.  
  707.      The special meaning of reserved words or aliases can be removed by
  708.      quoting any character of the reserved word.  The recognition of function
  709.      names or special command names listed below cannot be altered by quoting
  710.      them.
  711.  
  712.    AAAArrrriiiitttthhhhmmmmeeeettttiiiicccc EEEEvvvvaaaalllluuuuaaaattttiiiioooonnnn
  713.      An ability to perform integer arithmetic is provided with the special
  714.      command _llll_eeee_tttt.  Evaluations are performed using _l_o_n_g arithmetic.  Constants
  715.      are of the form [_b_a_s_e_####]_n where _b_a_s_e is a decimal number between two and
  716.      thirty-six representing the arithmetic base and _n is a number in that
  717.      base.  If _b_a_s_e_#### is omitted base 10 is used.
  718.  
  719.  
  720.  
  721.  
  722.  
  723.                                                                        PPPPaaaaggggeeee 11111111
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  731.  
  732.  
  733.  
  734.      An arithmetic expression uses the same syntax, precedence, and
  735.      associativity of expression of the C language.  All the integral
  736.      operators, other than _++++_++++, _----_----, _????_::::, and _,,,, are supported.  Variables can be
  737.      referenced by name within an arithmetic expression without using the
  738.      parameter substitution syntax.  When a variable is referenced, its value
  739.      is evaluated as an arithmetic expression.
  740.  
  741.      An internal integer representation of a _v_a_r_i_a_b_l_e can be specified with
  742.      the _----_iiii option of the _tttt_yyyy_pppp_eeee_ssss_eeee_tttt special command.  Arithmetic evaluation is
  743.      performed on the value of each assignment to a variable with the _----_iiii
  744.      attribute.  If you do not specify an arithmetic base, the first
  745.      assignment to the variable determines the arithmetic base.  This base is
  746.      used when parameter substitution occurs.
  747.  
  748.      Since many of the arithmetic operators require quoting, an alternative
  749.      form of the _llll_eeee_tttt command is provided.  For any command which begins with a
  750.      _((((_((((, all the characters until a matching _))))_)))) are treated as a quoted
  751.      expression.  More precisely, _((((_((((..._))))_)))) is equivalent to _llll_eeee_tttt _""""..._"""".
  752.  
  753.    PPPPrrrroooommmmppppttttiiiinnnngggg
  754.      When used interactively, the shell prompts with the parameter expanded
  755.      value of _PPPP_SSSS_1111 before reading a command.  If at any time a newline is typed
  756.      and further input is needed to complete a command, the secondary prompt
  757.      (that is, the value of _PPPP_SSSS_2222) is issued.
  758.  
  759.    CCCCoooonnnnddddiiiittttiiiioooonnnnaaaallll EEEExxxxpppprrrreeeessssssssiiiioooonnnnssss
  760.      A _c_o_n_d_i_t_i_o_n_a_l _e_x_p_r_e_s_s_i_o_n is used with the _[[[[_[[[[ compound command to test
  761.      attributes of files and to compare strings.  Word splitting and filename
  762.      generation are not performed on the words between _[[[[_[[[[ and _]]]]_]]]].  Each
  763.      expression can be constructed from one or more of the following unary or
  764.      binary expressions:
  765.  
  766.      _----_aaaa _f_i_l_e             True, if _f_i_l_e exists.
  767.      _----_bbbb _f_i_l_e             True, if _f_i_l_e exists and is a block special file.
  768.      _----_cccc _f_i_l_e             True, if _f_i_l_e exists and is a character special file.
  769.      _----_dddd _f_i_l_e             True, if _f_i_l_e exists and is a directory.
  770.      _----_eeee _f_i_l_e             Same as -a file.
  771.      _----_ffff _f_i_l_e             True, if _f_i_l_e exists and is an ordinary file.
  772.      _----_gggg _f_i_l_e             True, if _f_i_l_e exists and is has its setgid bit set.
  773.      _----_kkkk _f_i_l_e             True, if _f_i_l_e exists and is has its sticky bit set.
  774.      _----_nnnn _s_t_r_i_n_g           True, if length of _s_t_r_i_n_g is nonzero.
  775.      _----_oooo _o_p_t_i_o_n           True, if option named _o_p_t_i_o_n is on.
  776.      _----_pppp _f_i_l_e             True, if _f_i_l_e exists and is a fifo special file or a
  777.                          pipe.
  778.      _----_rrrr _f_i_l_e             True, if _f_i_l_e exists and is readable by current
  779.                          process.
  780.      _----_ssss _f_i_l_e             True, if _f_i_l_e exists and has size greater than zero.
  781.      _----_tttt _f_i_l_d_e_s           True, if file descriptor number _f_i_l_d_e_s is open and
  782.                          associated with a terminal device.
  783.      _----_uuuu _f_i_l_e             True, if _f_i_l_e exists and is has its setuid bit set.
  784.  
  785.  
  786.  
  787.  
  788.  
  789.                                                                        PPPPaaaaggggeeee 11112222
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  797.  
  798.  
  799.  
  800.      _----_wwww _f_i_l_e             True, if _f_i_l_e exists and is writable by current
  801.                          process.
  802.      _----_xxxx _f_i_l_e             True, if _f_i_l_e exists and is executable by current
  803.                          process.  If _f_i_l_e exists and is a directory, the
  804.                          current process has permission to search in the
  805.                          directory.
  806.      _----_zzzz _s_t_r_i_n_g           True, if length of _s_t_r_i_n_g is zero.
  807.      _----_LLLL _f_i_l_e             True, if _f_i_l_e exists and is a symbolic link.
  808.      _----_OOOO _f_i_l_e             True, if _f_i_l_e exists and is owned by the effective
  809.                          user id of this process.
  810.      _----_GGGG _f_i_l_e             True, if _f_i_l_e exists and its group matches the
  811.                          effective group id of this process.
  812.      _----_SSSS _f_i_l_e             True, if _f_i_l_e exists and is a socket.
  813.      _f_i_l_e_1 _----_nnnn_tttt _f_i_l_e_2     True, if _f_i_l_e_1 exists and is newer than _f_i_l_e_2.
  814.      _f_i_l_e_1 _----_oooo_tttt _f_i_l_e_2     True, if _f_i_l_e_1 exists and is older than _f_i_l_e_2.
  815.      _f_i_l_e_1 _----_eeee_ffff _f_i_l_e_2     True, if _f_i_l_e_1 and _f_i_l_e_2 exist and refer to the same
  816.                          file.
  817.      _s_t_r_i_n_g _==== _p_a_t_t_e_r_n    True, if _s_t_r_i_n_g matches _p_a_t_t_e_r_n.
  818.      _s_t_r_i_n_g _!!!!_==== _p_a_t_t_e_r_n   True, if _s_t_r_i_n_g does not match _p_a_t_t_e_r_n.
  819.      _s_t_r_i_n_g_1 _<<<< _s_t_r_i_n_g_2   True, if _s_t_r_i_n_g_1 comes before _s_t_r_i_n_g_2 based on ASCII
  820.                          value of their characters.
  821.      _s_t_r_i_n_g_1 _>>>> _s_t_r_i_n_g_2   True, if _s_t_r_i_n_g_1 comes after _s_t_r_i_n_g_2 based on ASCII
  822.                          value of their characters.
  823.      _e_x_p_1 _----_eeee_qqqq _e_x_p_2       True, if _e_x_p_1 is equal to _e_x_p_2.
  824.      _e_x_p_1 _----_nnnn_eeee _e_x_p_2       True, if _e_x_p_1 is not equal to _e_x_p_2.
  825.      _e_x_p_1 _----_llll_tttt _e_x_p_2       True, if _e_x_p_1 is less than _e_x_p_2.
  826.      _e_x_p_1 _----_gggg_tttt _e_x_p_2       True, if _e_x_p_1 is greater than _e_x_p_2.
  827.      _e_x_p_1 _----_llll_eeee _e_x_p_2       True, if _e_x_p_1 is less than or equal to _e_x_p_2.
  828.      _e_x_p_1 _----_gggg_eeee _e_x_p_2       True, if _e_x_p_1 is greater than or equal to _e_x_p_2.
  829.  
  830.      In each of the above expressions, if _f_i_l_e is of the form _////_dddd_eeee_vvvv_////_ffff_dddd_////_n, where
  831.      _n is an integer, the test is applied to the open file whose descriptor
  832.      number is _n.
  833.  
  834.      A compound expression can be constructed from these primitives by using
  835.      any of the following, listed in decreasing order of precedence.
  836.  
  837.      _((((_e_x_p_r_e_s_s_i_o_n_))))                 True, if _e_x_p_r_e_s_s_i_o_n is true.  Used to group
  838.                                   expressions.
  839.  
  840.      _!!!! _e_x_p_r_e_s_s_i_o_n                 True if _e_x_p_r_e_s_s_i_o_n is false.
  841.  
  842.      _e_x_p_r_e_s_s_i_o_n_1 _&&&&_&&&& _e_x_p_r_e_s_s_i_o_n_2   True, if _e_x_p_r_e_s_s_i_o_n_1 and _e_x_p_r_e_s_s_i_o_n_2 are
  843.                                   both true.
  844.  
  845.      _e_x_p_r_e_s_s_i_o_n_1 _||||_|||| _e_x_p_r_e_s_s_i_o_n_2   True, if either _e_x_p_r_e_s_s_i_o_n_1 or _e_x_p_r_e_s_s_i_o_n_2
  846.                                   is true.
  847.  
  848.    IIIInnnnppppuuuutttt////OOOOuuuuttttppppuuuutttt
  849.      Before a command is executed, its input and output may be redirected
  850.      using a special notation interpreted by the shell.  The following may
  851.      appear anywhere in a simple-command or may precede or follow a _c_o_m_m_a_n_d
  852.  
  853.  
  854.  
  855.                                                                        PPPPaaaaggggeeee 11113333
  856.  
  857.  
  858.  
  859.  
  860.  
  861.  
  862. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  863.  
  864.  
  865.  
  866.      and are not passed on to the invoked command.  Command and parameter
  867.      substitution occurs before _w_o_r_d or _d_i_g_i_t is used except as noted below.
  868.      Filename generation occurs only if the pattern matches a single file and
  869.      blank interpretation is not performed.
  870.  
  871.      _<<<<_w_o_r_d       Use file _w_o_r_d as standard input (file descriptor 0).
  872.  
  873.      _>>>>_w_o_r_d       Use file _w_o_r_d as standard output (file descriptor 1).  If the
  874.                  file does not exist it is created.  If the file exists, is a
  875.                  regular file, and the _nnnn_oooo_cccc_llll_oooo_bbbb_bbbb_eeee_rrrr option is on, this causes an
  876.                  error; otherwise, it is truncated to zero length.
  877.  
  878.      _>>>>_||||_w_o_r_d      Sames as _>>>>, except that it overrides the _nnnn_oooo_cccc_llll_oooo_bbbb_bbbb_eeee_rrrr option.
  879.  
  880.      _>>>>_>>>>_w_o_r_d      Use file _w_o_r_d as standard output.  If the file exists output
  881.                  is appended to it (by first seeking to the end-of-file);
  882.                  otherwise, the file is created.
  883.  
  884.      _<<<<_>>>>_w_o_r_d      Open file _w_o_r_d for reading and writing as standard input.
  885.  
  886.      _<<<<_<<<<[_----]_w_o_r_d   The shell input is read up to a line that is the same as
  887.                  _w_o_r_d, or to an end-of-file.  No parameter substitution,
  888.                  command substitution or filename generation is performed on
  889.                  _w_o_r_d.  The resulting document, called a _h_e_r_e-_d_o_c_u_m_e_n_t,
  890.                  becomes the standard input.  If any character of _w_o_r_d is
  891.                  quoted, no interpretation is placed upon the characters of
  892.                  the document; otherwise, parameter and command substitution
  893.                  occurs, _\\\\_nnnn_eeee_wwww_llll_iiii_nnnn_eeee is ignored, and _\\\\ must be used to quote the
  894.                  characters _\\\\, _$$$$, _````, and the first character of _w_o_r_d.  If _---- is
  895.                  appended to _<<<<_<<<<, all leading tabs are stripped from _w_o_r_d and
  896.                  from the document.
  897.  
  898.      _<<<<_&&&&_d_i_g_i_t     The standard input is duplicated from file descriptor _d_i_g_i_t
  899.                  [see _dddd_uuuu_pppp(2)].  Similarly for the standard output using _>>>>_&&&&
  900.                  _d_i_g_i_t.
  901.  
  902.      _<<<<_&&&&_----         The standard input is closed.  Similarly for the standard
  903.                  output using _>>>>_&&&&_----.
  904.  
  905.      _<<<<_&&&&_pppp         The input from the co-process is moved to standard input.
  906.  
  907.      _>>>>_&&&&_pppp         The output to the co-process is moved to standard output.
  908.  
  909.      If one of the above is preceded by a digit, the file descriptor number
  910.      referred to is that specified by the digit (instead of the default 0 or
  911.      1).  For example,
  912.  
  913.           _...._...._.... _2222_>>>>_&&&&_1111
  914.  
  915.      means file descriptor 2 is to be opened for writing as a duplicate of
  916.      file descriptor 1.
  917.  
  918.  
  919.  
  920.  
  921.                                                                        PPPPaaaaggggeeee 11114444
  922.  
  923.  
  924.  
  925.  
  926.  
  927.  
  928. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  929.  
  930.  
  931.  
  932.      The order in which redirections are specified is significant.  The shell
  933.      evaluates each redirection in terms of the (_f_i_l_e _d_e_s_c_r_i_p_t_o_r, _f_i_l_e)
  934.      association at the time of evaluation.  For example:
  935.  
  936.           _...._...._.... _1111_>>>>_f_n_a_m_e _2222_>>>>_&&&&_1111
  937.  
  938.      first associates file descriptor 1 with file _f_n_a_m_e.  It then associates
  939.      file descriptor 2 with the file associated with file descriptor 1 (that
  940.      is, _f_n_a_m_e).  If the order of redirections were reversed, file descriptor
  941.      2 is associated with the terminal (assuming file descriptor 1 had been)
  942.      and then file descriptor 1 is associated with file _f_n_a_m_e.
  943.  
  944.      If a command is followed by _&&&& and job control is not active, the default
  945.      standard input for the command is the empty file _////_dddd_eeee_vvvv_////_nnnn_uuuu_llll_llll.  Otherwise,
  946.      the environment for the execution of a command contains the file
  947.      descriptors of the invoking shell as modified by input/output
  948.      specifications.
  949.  
  950.    EEEEnnnnvvvviiiirrrroooonnnnmmmmeeeennnntttt
  951.      The _e_n_v_i_r_o_n_m_e_n_t [see _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)] is a list of name-value pairs that is
  952.      passed to an executed program in the same way as a normal argument list.
  953.      The names must be _i_d_e_n_t_i_f_i_e_r_s and the values are character strings.  The
  954.      shell interacts with the environment in several ways.  On invocation, the
  955.      shell scans the environment and creates a variable for each name found,
  956.      giving it the corresponding value and marking it _e_x_p_o_r_t . Executed
  957.      commands inherit the environment.  If the user modifies the values of
  958.      these variables or creates new ones, using the _eeee_xxxx_pppp_oooo_rrrr_tttt or _tttt_yyyy_pppp_eeee_ssss_eeee_tttt _----_xxxx
  959.      commands they become part of the environment.  The environment seen by
  960.      any executed command is thus composed of any name-value pairs originally
  961.      inherited by the shell, whose values may be modified by the current
  962.      shell, plus any additions which must be noted in _eeee_xxxx_pppp_oooo_rrrr_tttt or _tttt_yyyy_pppp_eeee_ssss_eeee_tttt _----_xxxx
  963.      commands.
  964.  
  965.      The environment for any _s_i_m_p_l_e-_c_o_m_m_a_n_d or function may be augmented by
  966.      prefixing it with one or more variable assignments.  A variable
  967.      assignment argument is a word of the form _i_d_e_n_t_i_f_i_e_r=_v_a_l_u_e.  Thus, the
  968.      commands:
  969.  
  970.           _TTTT_EEEE_RRRR_MMMM_====_4444_5555_0000 _c_m_d _a_r_g_s
  971.           _((((_eeee_xxxx_pppp_oooo_rrrr_tttt _TTTT_EEEE_RRRR_MMMM_;;;; _TTTT_EEEE_RRRR_MMMM_====_4444_5555_0000_;;;; _c_m_d _a_r_g_s_))))
  972.  
  973.      are equivalent (as far as the above execution of _c_m_d is concerned except
  974.      for commands listed with one or two asterisks, * or **, in the SSSSppppeeeecccciiiiaaaallll
  975.      CCCCoooommmmmmmmaaaannnnddddssss section).
  976.  
  977.      If the _----_kkkk flag is set, _a_l_l variable assignment arguments are placed in
  978.      the environment, even if they occur after the command name.  The
  979.      following first prints _aaaa_====_bbbb _cccc and then _cccc_::::
  980.  
  981.           _eeee_cccc_hhhh_oooo _aaaa_====_bbbb _cccc
  982.           _ssss_eeee_tttt _----_kkkk
  983.           _eeee_cccc_hhhh_oooo _aaaa_====_bbbb _cccc
  984.  
  985.  
  986.  
  987.                                                                        PPPPaaaaggggeeee 11115555
  988.  
  989.  
  990.  
  991.  
  992.  
  993.  
  994. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  995.  
  996.  
  997.  
  998.      This feature is intended for use with scripts written for early versions
  999.      of the shell and its use in new scripts is strongly discouraged.  It is
  1000.      likely to disappear someday.
  1001.  
  1002.    FFFFuuuunnnnccccttttiiiioooonnnnssss
  1003.      The _ffff_uuuu_nnnn_cccc_tttt_iiii_oooo_nnnn reserved word, described in the Commands section above, is
  1004.      used to define shell functions.  Shell functions are read in and stored
  1005.      internally.  Alias names are resolved when the function is read.
  1006.      Functions are executed like commands with the arguments passed as
  1007.      positional parameters (see Execution below).  The special positional
  1008.      parameter $0 is the name of invoking program, not the name of the
  1009.      function.
  1010.  
  1011.      Functions execute in the same process as the caller and share all files
  1012.      and present working directory with the caller.  Traps caught by the
  1013.      caller are reset to their default action inside the function.  A trap
  1014.      condition that is not caught or ignored by the function causes the
  1015.      function to terminate and the condition to be passed on to the caller.  A
  1016.      trap on _EEEE_XXXX_IIII_TTTT set inside a function is executed after the function
  1017.      completes in the environment of the caller.  Ordinarily, variables are
  1018.      shared between the calling program and the function.  However, the
  1019.      _tttt_yyyy_pppp_eeee_ssss_eeee_tttt special command used within a function defines local variables
  1020.      whose scope includes the current function and all functions it calls.
  1021.  
  1022.      The special command _rrrr_eeee_tttt_uuuu_rrrr_nnnn is used to return from function calls.  Errors
  1023.      within functions return control to the caller.
  1024.  
  1025.      Function identifiers can be listed with the _----_ffff or _++++_ffff option of the
  1026.      _tttt_yyyy_pppp_eeee_ssss_eeee_tttt special command.  The text of functions may also be listed with
  1027.      _----_ffff.  Function can be undefined with the _----_ffff option of the _uuuu_nnnn_ssss_eeee_tttt special
  1028.      command.
  1029.  
  1030.      Ordinarily, functions are unset when the shell executes a shell script.
  1031.      The _----_xxxx_ffff option of the _tttt_yyyy_pppp_eeee_ssss_eeee_tttt command allows a function to be exported to
  1032.      scripts that are executed without a separate invocation of the shell.
  1033.      Functions that need to be defined across separate invocations of the
  1034.      shell should be specified in the _EEEE_NNNN_VVVV file with the _----_xxxx_ffff option of _tttt_yyyy_pppp_eeee_ssss_eeee_tttt.
  1035.  
  1036.    JJJJoooobbbbssss
  1037.      If the _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr option of the _ssss_eeee_tttt command is turned on, an interactive
  1038.      shell associates a _j_o_b with each pipeline.  It keeps a table of current
  1039.      jobs, printed by the _jjjj_oooo_bbbb_ssss command, and assigns them small integer
  1040.      numbers.  The max number of jobs is defined by the systune value 'maxup'.
  1041.      This is determined at shell invocation. When a job is started
  1042.      asynchronously with _&&&&, the shell prints a line which looks like:
  1043.  
  1044.           [1] 1234
  1045.  
  1046.      indicating that the job which was started asynchronously was job number 1
  1047.      and had one (top-level) process, whose process id was 1234.
  1048.  
  1049.  
  1050.  
  1051.  
  1052.  
  1053.                                                                        PPPPaaaaggggeeee 11116666
  1054.  
  1055.  
  1056.  
  1057.  
  1058.  
  1059.  
  1060. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1061.  
  1062.  
  1063.  
  1064.      If you are running a job and wish to do something else you may hit the
  1065.      key _^^^^_ZZZZ (CTRL-z) which sends a STOP signal to the current job.  The shell
  1066.      normally indicates that the job has been `Stopped', and prints another
  1067.      prompt.  You can manipulate the state of this job, putting it in the
  1068.      background with the _bbbb_gggg command or run some other commands and eventually
  1069.      bring the job back into the foreground with the foreground command _ffff_gggg.  A
  1070.      _^^^^_ZZZZ takes effect immediately and is like an interrupt in that pending
  1071.      output and unread input are discarded when it is typed.
  1072.  
  1073.      A job being run in the background stops if it tries to read from the
  1074.      terminal.  Background jobs are normally allowed to produce output, but
  1075.      this can be disabled by giving the command ``stty tostop''.  If you set
  1076.      this tty option, background jobs stop when they try to produce output
  1077.      like they do when they try to read input.
  1078.  
  1079.      There are several ways to refer to jobs in the shell.  A job can be
  1080.      referred to by the process id of any process of the job or by one of the
  1081.      following:
  1082.  
  1083.      _%%%%_n_u_m_b_e_r    The job with the given number.
  1084.  
  1085.      _%%%%_s_t_r_i_n_g    Any job whose command line begins with _s_t_r_i_n_g.
  1086.  
  1087.      _%%%%_????_s_t_r_i_n_g   Any job whose command line contains _s_t_r_i_n_g.
  1088.  
  1089.      _%%%%_%%%%         Current job.
  1090.  
  1091.      _%%%%_++++         Equivalent to _%%%%_%%%%.
  1092.  
  1093.      _%%%%_----         Previous job.
  1094.  
  1095.      This shell learns immediately whenever a process changes state.  It
  1096.      normally informs you whenever a job becomes blocked so that no further
  1097.      progress is possible, but only just before it prints a prompt.  This is
  1098.      done so that it does not otherwise disturb your work.
  1099.  
  1100.      When the monitor mode is on, each background job that completes triggers
  1101.      any trap set for _CCCC_HHHH_LLLL_DDDD.
  1102.  
  1103.      When you try to leave the shell while jobs are running or stopped, you
  1104.      are be warned that `You have stopped(running) jobs.'  You may use the
  1105.      _jjjj_oooo_bbbb_ssss command to see what they are.  If you do this or immediately try to
  1106.      exit again, the shell does not warn you a second time, and the stopped
  1107.      jobs are terminated.
  1108.  
  1109.    SSSSiiiiggggnnnnaaaallllssss
  1110.      When a command is run in the background (that it, when it is followed by
  1111.      _&&&&) and the job _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr option is active, the command does not receive
  1112.      INTERRUPT or QUIT signals.  When a command is run in the background (that
  1113.      it, when it is followed by _&&&&) and the job _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr option is not active,
  1114.      the command receives INTERRUPT or QUIT signals but ignores them.
  1115.      Otherwise, signals have the values inherited by the shell from its parent
  1116.  
  1117.  
  1118.  
  1119.                                                                        PPPPaaaaggggeeee 11117777
  1120.  
  1121.  
  1122.  
  1123.  
  1124.  
  1125.  
  1126. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1127.  
  1128.  
  1129.  
  1130.      (but see also the _tttt_rrrr_aaaa_pppp command below).
  1131.  
  1132.    EEEExxxxeeeeccccuuuuttttiiiioooonnnn
  1133.      Each time a command is executed, the above substitutions are carried out.
  1134.      If the command name matches one of the special commands listed below, it
  1135.      is executed within the current shell process.  Next, the command name is
  1136.      checked to see if it matches one of the user defined functions.  If it
  1137.      does, the positional parameters are saved and reset to the arguments of
  1138.      the _f_u_n_c_t_i_o_n call.  When the _f_u_n_c_t_i_o_n completes or issues a _rrrr_eeee_tttt_uuuu_rrrr_nnnn, the
  1139.      positional parameter list is restored and any trap set on _EEEE_XXXX_IIII_TTTT within the
  1140.      function is executed.  The value of a _f_u_n_c_t_i_o_n is the value of the last
  1141.      command executed.  A function is also executed in the current shell
  1142.      process.  If a command name is not a _s_p_e_c_i_a_l _c_o_m_m_a_n_d or a user defined
  1143.      _f_u_n_c_t_i_o_n, a process is created and an attempt is made to execute the
  1144.      command via _eeee_xxxx_eeee_cccc(2).
  1145.  
  1146.      The shell variable _PPPP_AAAA_TTTT_HHHH defines the search path for the directory
  1147.      containing the command.  Alternative directory names are separated by a
  1148.      colon (_::::).  The default path is _////_uuuu_ssss_rrrr_////_bbbb_iiii_nnnn_::::  (specifying _////_uuuu_ssss_rrrr_////_bbbb_iiii_nnnn and the
  1149.      current directory in that order).  The current directory can be specified
  1150.      by two or more adjacent colons, or by a colon at the beginning or end of
  1151.      the path list.  If the command name contains a _//// the search path is not
  1152.      used.  Otherwise, each directory in the path is searched for an
  1153.      executable file.  If the file has execute permission but is not a
  1154.      directory or an _aaaa_...._oooo_uuuu_tttt file, it is assumed to be a file containing shell
  1155.      commands.  A sub-shell is spawned to read it.  All non-exported aliases,
  1156.      functions, and variables, are removed in this case.  A parenthesized
  1157.      command is executed in a sub-shell without removing non-exported
  1158.      quantities.
  1159.  
  1160.    CCCCoooommmmmmmmaaaannnndddd RRRReeee----eeeennnnttttrrrryyyy
  1161.      The text of the last _HHHH_IIII_SSSS_TTTT_SSSS_IIII_ZZZZ_EEEE (default 128) commands entered from a
  1162.      terminal device is saved in a _h_i_s_t_o_r_y file.  The file _$$$$_HHHH_OOOO_MMMM_EEEE_////_...._ssss_hhhh______hhhh_iiii_ssss_tttt_oooo_rrrr_yyyy
  1163.      is used if the file denoted by the _HHHH_IIII_SSSS_TTTT_FFFF_IIII_LLLL_EEEE variable is not set or is not
  1164.      writable.  A shell can access the commands of all _i_n_t_e_r_a_c_t_i_v_e shells
  1165.      which use the same named _HHHH_IIII_SSSS_TTTT_FFFF_IIII_LLLL_EEEE.  The special command _ffff_cccc is used to
  1166.      list or edit a portion of this file.  The portion of the file to be
  1167.      edited or listed can be selected by number or by giving the first
  1168.      character or characters of the command.  A single command or range of
  1169.      commands can be specified.  If you do not specify an editor program as an
  1170.      argument to _ffff_cccc the value of the variable _FFFF_CCCC_EEEE_DDDD_IIII_TTTT is used.  If _FFFF_CCCC_EEEE_DDDD_IIII_TTTT is
  1171.      not defined _////_uuuu_ssss_rrrr_////_bbbb_iiii_nnnn_////_eeee_dddd is used.  The edited command(s) is printed and
  1172.      re-executed upon leaving the editor.  The editor name _---- is used to skip
  1173.      the editing phase and to re-execute the command.  In this case a
  1174.      substitution variable of the form _o_l_d_====_n_e_w can be used to modify the
  1175.      command before execution.  For example, if _rrrr is aliased to _''''_ffff_cccc _----_eeee _----_'''',
  1176.      typing `_rrrr _bbbb_aaaa_dddd_====_gggg_oooo_oooo_dddd _cccc' re-executes the most recent command that starts
  1177.      with the letter _cccc, replacing the first occurrence of the string _bbbb_aaaa_dddd with
  1178.      the string _gggg_oooo_oooo_dddd.
  1179.  
  1180.  
  1181.  
  1182.  
  1183.  
  1184.  
  1185.                                                                        PPPPaaaaggggeeee 11118888
  1186.  
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1193.  
  1194.  
  1195.  
  1196.    IIIInnnnlllliiiinnnneeee EEEEddddiiiittttiiiinnnngggg OOOOppppttttiiiioooonnnn
  1197.      Normally, each command line entered from a terminal device is simply
  1198.      typed followed by a newline (`RETURN' or `LINE FEED').  If either the
  1199.      _eeee_mmmm_aaaa_cccc_ssss, or _vvvv_iiii option is active, the user can edit the command line.  To be
  1200.      in either of these edit modes _ssss_eeee_tttt the corresponding option.  An editing
  1201.      option is automatically selected each time the _VVVV_IIII_SSSS_UUUU_AAAA_LLLL or _EEEE_DDDD_IIII_TTTT_OOOO_RRRR variable
  1202.      is assigned a value ending in either of these option names.
  1203.  
  1204.      The editing features require that the user's terminal accept `RETURN' as
  1205.      carriage return without line feed and that a space (` ') must overwrite
  1206.      the current character on the screen.
  1207.  
  1208.      The editing modes implement a concept where the user is looking through a
  1209.      window at the current line.  The window width is the value of _CCCC_OOOO_LLLL_UUUU_MMMM_NNNN_SSSS if
  1210.      it is defined, otherwise 80.  If the line is longer than the window width
  1211.      minus two, a mark is displayed at the end of the window to notify the
  1212.      user.  As the cursor moves and reaches the window boundaries, the window
  1213.      is centered about the cursor.  The mark is a _>>>> (<_,,,, _****) if the line extends
  1214.      on the right (left, both) side(s) of the window.
  1215.  
  1216.      The search commands in each edit mode provide access to the history file.
  1217.      Only strings are matched, not patterns, although a leading _^^^^ in the
  1218.      string restricts the match to begin at the first character in the line.
  1219.  
  1220.    EEEEmmmmaaaaccccssss EEEEddddiiiittttiiiinnnngggg MMMMooooddddeeee
  1221.      This mode is entered by enabling either the _e_m_a_c_s or _g_m_a_c_s option.  The
  1222.      only difference between these two modes is the way they handle _^^^^_TTTT.  To
  1223.      edit, the user moves the cursor to the point needing correction and then
  1224.      inserts or deletes characters or words as needed.  All the editing
  1225.      commands are control characters or escape sequences.  The notation for
  1226.      control characters is caret ( _^^^^ ) followed by the character.  For
  1227.      example, _^^^^_FFFF is the notation for CTRL-_ffff.  This is entered by depressing
  1228.      `f' while holding down the `CTRL' (control) key.  (The notation _^^^^_????
  1229.      indicates the DEL (delete) key.)
  1230.  
  1231.      The notation for escape sequences is _MMMM_---- followed by a character.  For
  1232.      example, _MMMM_----_ffff (pronounced Meta f) is entered by depressing ESC (ascii
  1233.      _\\\\_0000_3333_3333) followed by `f'.  (_MMMM_----_FFFF would be the notation for ESC followed by
  1234.      `SHIFT' (capital) `F'.)
  1235.  
  1236.      All edit commands operate from any place on the line (not just at the
  1237.      beginning).  Neither the "RETURN" nor the "LINE FEED" key is entered
  1238.      after edit commands except when noted.
  1239.  
  1240.      _^^^^_FFFF        Move cursor forward (right) one character.
  1241.      _MMMM_----_ffff       Move cursor forward one word.  (The emacs editor's idea of a
  1242.                word is a string of characters consisting of only letters,
  1243.                digits and underscores.)
  1244.      _^^^^_BBBB        Move cursor backward (left) one character.
  1245.      _MMMM_----_bbbb       Move cursor backward one word.
  1246.  
  1247.  
  1248.  
  1249.  
  1250.  
  1251.                                                                        PPPPaaaaggggeeee 11119999
  1252.  
  1253.  
  1254.  
  1255.  
  1256.  
  1257.  
  1258. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1259.  
  1260.  
  1261.  
  1262.      _^^^^_AAAA        Move cursor to start of line.
  1263.      _^^^^_EEEE        Move cursor to end of line.
  1264.      _^^^^_]]]]_c_h_a_r    Move cursor forward to character _c_h_a_r on current line.
  1265.      _MMMM_----_^^^^_]]]]_c_h_a_r  Move cursor back to character _c_h_a_r on current line.
  1266.      _^^^^_XXXX_^^^^_XXXX      Interchange the cursor and mark.
  1267.      _e_r_a_s_e     (User defined erase character as defined by the _ssss_tttt_tttt_yyyy(1)
  1268.                command, usually _^^^^_HHHH or _####.)  Delete previous character.
  1269.      _^^^^_DDDD        Delete current character.
  1270.      _MMMM_----_dddd       Delete current word.
  1271.      _MMMM_----_^^^^_HHHH      (Meta-backspace) Delete previous word.
  1272.      _MMMM_----_hhhh       Delete previous word.
  1273.      _MMMM_----_^^^^_????      (Meta-DEL) Delete previous word (if your interrupt character is
  1274.                _^^^^_????  (DEL, the default) then this command will not work).
  1275.      _^^^^_TTTT        Transpose current character with next character in _e_m_a_c_s mode.
  1276.                Transpose two previous characters in _g_m_a_c_s mode.
  1277.      _^^^^_CCCC        Capitalize current character.
  1278.      _MMMM_----_cccc       Capitalize current word.
  1279.      _MMMM_----_llll       Change the current word to lower case.
  1280.      _^^^^_KKKK        Delete from the cursor to the end of the line.  If preceded by
  1281.                a numerical parameter whose value is less than the current
  1282.                cursor position, then delete from given position up to the
  1283.                cursor.  If preceded by a numerical parameter whose value is
  1284.                greater than the current cursor position, then delete from
  1285.                cursor up to given cursor position.
  1286.      _^^^^_WWWW        Kill from the cursor to the mark.
  1287.      _MMMM_----_pppp       Push the region from the cursor to the mark on the stack.
  1288.      _kkkk_iiii_llll_llll      (User defined kill character as defined by the stty command,
  1289.                usually _^^^^_GGGG or _@@@@.)  Kill the entire current line.  If two _kkkk_iiii_llll_llll
  1290.                characters are entered in succession, all kill characters from
  1291.                then on cause a line feed (useful when using paper terminals).
  1292.      _^^^^_YYYY        Restore last item removed from line. (Yank item back to the
  1293.                line.)
  1294.      _^^^^_LLLL        Line feed and print current line.
  1295.      _^^^^_@@@@        (Null character) Set mark.
  1296.      _MMMM_----_ssss_pppp_aaaa_cccc_eeee   (Meta space) Set mark.
  1297.      _^^^^_JJJJ        (New line) Execute the current line.
  1298.      _^^^^_MMMM        (Return) Execute the current line.
  1299.      _e_o_f       End-of-file character, normally _^^^^_DDDD, is processed as an End-of-
  1300.                file only if the current line is null.
  1301.      _^^^^_PPPP        Fetch previous command.  Each time _^^^^_PPPP is entered the previous
  1302.                command back in time is accessed.  Moves back one line when not
  1303.                on the first line of a multi-line command.
  1304.      _MMMM_----_<<<<       Fetch the least recent (oldest) history line.
  1305.      _MMMM_----_>>>>       Fetch the most recent (youngest) history line.
  1306.      _^^^^_NNNN        Fetch next command line.  Each time _^^^^_NNNN is entered the next
  1307.                command line forward in time is accessed.
  1308.      _^^^^_RRRR_s_t_r_i_n_g  Reverse search history for a previous command line containing
  1309.                _s_t_r_i_n_g.  If a parameter of zero is given, the search is
  1310.                forward.  _S_t_r_i_n_g is terminated by a "RETURN" or "NEW LINE".  If
  1311.                string is preceded by a _^^^^, the matched line must begin with
  1312.                _s_t_r_i_n_g.  If _s_t_r_i_n_g is omitted, then the next command line
  1313.                containing the most recent _s_t_r_i_n_g is accessed.  In this case a
  1314.  
  1315.  
  1316.  
  1317.                                                                        PPPPaaaaggggeeee 22220000
  1318.  
  1319.  
  1320.  
  1321.  
  1322.  
  1323.  
  1324. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1325.  
  1326.  
  1327.  
  1328.                parameter of zero reverses the direction of the search.
  1329.      _^^^^_OOOO        Operate - Execute the current line and fetch the next line
  1330.                relative to current line from the history file.
  1331.      _MMMM_----_d_i_g_i_t_s  (Escape) Define numeric parameter, the digits are taken as a
  1332.                parameter to the next command.  The commands that accept a
  1333.                parameter are _^^^^_FFFF, _^^^^_BBBB, _e_r_a_s_e, _^^^^_CCCC, _^^^^_DDDD, _^^^^_KKKK, _^^^^_RRRR, _^^^^_PPPP, _^^^^_NNNN, _^^^^_]]]], _MMMM_----_....,
  1334.                _MMMM_----_^^^^_]]]], _MMMM_----_____, _MMMM_----_bbbb, _MMMM_----_cccc, _MMMM_----_dddd, _MMMM_----_ffff, _MMMM_----_hhhh _MMMM_----_llll and _MMMM_----_^^^^_HHHH.
  1335.      _MMMM_----_l_e_t_t_e_r  Soft-key - Your alias list is searched for an alias by the name
  1336.                ______l_e_t_t_e_r and if an alias of this name is defined, its value will
  1337.                be inserted on the input queue.  The _l_e_t_t_e_r must not be one of
  1338.                the above meta-functions.  _MMMM_----_]]]]_l_e_t_t_e_r Soft-key - Your alias list
  1339.                is searched for an alias by the name ___________l_e_t_t_e_r and if an alias
  1340.                of this name is defined, its value will be inserted on the
  1341.                input queue.  The can be used to program functions keys on many
  1342.                terminals.
  1343.      _MMMM_----_....       The last word of the previous command is inserted on the line.
  1344.                If preceded by a numeric parameter, the value of this parameter
  1345.                determines which word to insert rather than the last word.
  1346.      _MMMM_----_____       Same as _MMMM_----_.....
  1347.      _MMMM_----_****       Attempt file name generation on the current word.  An asterisk
  1348.                is appended if the word doesn't match any file or contain any
  1349.                special pattern characters.
  1350.      _MMMM_----_EEEE_SSSS_CCCC     File name completion.  Replaces the current word with the
  1351.                longest common prefix of all filenames matching the current
  1352.                word with an asterisk appended.  If the match is unique, a _//// is
  1353.                appended if the file is a directory and a space is appended if
  1354.                the file is not a directory.
  1355.      _MMMM_----_====       List files matching current word pattern if an asterisk were
  1356.                appended.
  1357.      _^^^^_UUUU        Multiply parameter of next command by 4.
  1358.      _\\\\         Escape next character.  Editing characters, the user's erase,
  1359.                kill and interrupt (normally _^^^^_????)  characters may be entered in
  1360.                a command line or in a search string if preceded by a _\\\\.  The _\\\\
  1361.                removes the next character's editing features (if any).
  1362.      _^^^^_VVVV        Display version of the shell.
  1363.      _MMMM_----_####       Insert a _#### at the beginning of the line and execute it.  This
  1364.                causes a comment to be inserted in the history file.
  1365.  
  1366.    vvvviiii EEEEddddiiiittttiiiinnnngggg MMMMooooddddeeee
  1367.      There are two typing modes.  Initially, when you enter a command you are
  1368.      in the _i_n_p_u_t mode.  To edit, the user enters _c_o_n_t_r_o_l mode by typing ESC
  1369.      (_\\\\_0000_3333_3333), moves the cursor to the point needing correction, and inserts or
  1370.      deletes characters or words as needed.  Most control commands accept an
  1371.      optional repeat _c_o_u_n_t prior to the command.
  1372.  
  1373.      When in _vvvv_iiii mode on most systems, canonical processing is initially
  1374.      enabled and the command is echoed again if the speed is 1200 baud or
  1375.      greater and it contains any control characters or less than one second
  1376.      has elapsed since the prompt was printed.  The ESC character terminates
  1377.      canonical processing for the remainder of the command and the user can
  1378.      modify the command line.  This scheme has the advantages of canonical
  1379.      processing with the type-ahead echoing of raw mode.
  1380.  
  1381.  
  1382.  
  1383.                                                                        PPPPaaaaggggeeee 22221111
  1384.  
  1385.  
  1386.  
  1387.  
  1388.  
  1389.  
  1390. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1391.  
  1392.  
  1393.  
  1394.      If the option _vvvv_iiii_rrrr_aaaa_wwww is also set, the terminal always has canonical
  1395.      processing disabled.
  1396.  
  1397.    IIIInnnnppppuuuutttt EEEEddddiiiitttt CCCCoooommmmmmmmaaaannnnddddssss
  1398.      By default the editor is in input mode.
  1399.  
  1400.      _e_r_a_s_e   (User defined erase character as defined by the stty command,
  1401.              usually _^^^^_HHHH or _####.)  Delete previous character.
  1402.  
  1403.      _^^^^_WWWW      Delete the previous blank separated word.
  1404.  
  1405.      _^^^^_DDDD      Terminate the shell.
  1406.  
  1407.      _^^^^_VVVV      Escape next character.  Editing characters, the user's erase or
  1408.              kill characters may be entered in a command line or in a search
  1409.              string if preceded by a _^^^^_VVVV.  The _^^^^_VVVV removes the next character's
  1410.              editing features (if any).
  1411.  
  1412.      _\\\\       Escape the next _e_r_a_s_e or _kkkk_iiii_llll_llll character.
  1413.  
  1414.    MMMMoooottttiiiioooonnnn EEEEddddiiiitttt CCCCoooommmmmmmmaaaannnnddddssss
  1415.      These commands move the cursor.
  1416.  
  1417.      [_c_o_u_n_t]_llll    Cursor forward (right) one character.
  1418.  
  1419.      [_c_o_u_n_t]_wwww    Cursor forward one alpha-numeric word.
  1420.  
  1421.      [_c_o_u_n_t]_WWWW    Cursor to the beginning of the next word that follows a
  1422.                  blank.
  1423.  
  1424.      [_c_o_u_n_t]_eeee    Cursor to end of word.
  1425.  
  1426.      [_c_o_u_n_t]_EEEE    Cursor to end of the current blank delimited word.
  1427.  
  1428.      [_c_o_u_n_t]_hhhh    Cursor backward (left) one character.
  1429.  
  1430.      [_c_o_u_n_t]_bbbb    Cursor backward one word.
  1431.  
  1432.      [_c_o_u_n_t]_BBBB    Cursor to preceding blank separated word.
  1433.  
  1434.      [_c_o_u_n_t]_||||    Cursor to column _c_o_u_n_t.
  1435.  
  1436.      [_c_o_u_n_t]_ffff_c   Find the next character _c in the current line.
  1437.  
  1438.      [_c_o_u_n_t]_FFFF_c   Find the previous character _c in the current line.
  1439.  
  1440.      [_c_o_u_n_t]_tttt_c   Equivalent to _ffff followed by _hhhh.
  1441.  
  1442.      [_c_o_u_n_t]_TTTT_c   Equivalent to _FFFF followed by _llll.
  1443.  
  1444.  
  1445.  
  1446.  
  1447.  
  1448.  
  1449.                                                                        PPPPaaaaggggeeee 22222222
  1450.  
  1451.  
  1452.  
  1453.  
  1454.  
  1455.  
  1456. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1457.  
  1458.  
  1459.  
  1460.      [_c_o_u_n_t]_;;;;    Repeats _c_o_u_n_t times, the last single character find command,
  1461.                  _ffff, _FFFF, _tttt, or _TTTT.
  1462.  
  1463.      [_c_o_u_n_t]_,,,,    Reverses the last single character find command _c_o_u_n_t times.
  1464.  
  1465.      _0000           Cursor to start of line.
  1466.  
  1467.      _^^^^           Cursor to first non-blank character in line.
  1468.  
  1469.      _$$$$           Cursor to end of line.
  1470.  
  1471.    SSSSeeeeaaaarrrrcccchhhh EEEEddddiiiitttt CCCCoooommmmmmmmaaaannnnddddssss
  1472.      These commands access your command history.
  1473.  
  1474.      [_c_o_u_n_t]_kkkk    Fetch previous command.  Each time _kkkk is entered the previous
  1475.                  command back in time is accessed.
  1476.  
  1477.      [_c_o_u_n_t]_----    Equivalent to _kkkk.
  1478.  
  1479.      [_c_o_u_n_t]_jjjj    Fetch next command.  Each time _jjjj is entered the next command
  1480.                  forward in time is accessed.
  1481.  
  1482.      [_c_o_u_n_t]_++++    Equivalent to _jjjj.
  1483.  
  1484.      [_c_o_u_n_t]_GGGG    The command number _c_o_u_n_t is fetched.  The default is the
  1485.                  least recent history command.
  1486.  
  1487.      _////_s_t_r_i_n_g     Search backward through history for a previous command
  1488.                  containing _s_t_r_i_n_g.  _S_t_r_i_n_g is terminated by a "RETURN" or
  1489.                  "NEW LINE".  If string is preceded by a _^^^^, the matched line
  1490.                  must begin with _s_t_r_i_n_g.  If _s_t_r_i_n_g is null the previous
  1491.                  string is used.
  1492.  
  1493.      _????_s_t_r_i_n_g     Same as _//// except that search is in the forward direction.
  1494.  
  1495.      _nnnn           Search for next match of the last pattern to _//// or _????
  1496.                  commands.
  1497.  
  1498.      _NNNN           Search for next match of the last pattern to _//// or _????, but in
  1499.                  reverse direction.  Search history for the _s_t_r_i_n_g entered by
  1500.                  the previous _//// command.
  1501.  
  1502.    TTTTeeeexxxxtttt MMMMooooddddiiiiffffiiiiccccaaaattttiiiioooonnnn EEEEddddiiiitttt CCCCoooommmmmmmmaaaannnnddddssss
  1503.      These commands modify the line.
  1504.  
  1505.      _aaaa                Enter input mode and enter text after the current
  1506.                       character.
  1507.  
  1508.      _AAAA                Append text to the end of the line.  Equivalent to _$$$$_aaaa.
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.                                                                        PPPPaaaaggggeeee 22223333
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1523.  
  1524.  
  1525.  
  1526.      [_c_o_u_n_t]_cccc_m_o_t_i_o_n
  1527.      _cccc[_c_o_u_n_t]_m_o_t_i_o_n   Delete current character through the character that
  1528.                       _m_o_t_i_o_n would move the cursor to and enter input mode.
  1529.                       If _m_o_t_i_o_n is _cccc, the entire line is deleted and input
  1530.                       mode entered.
  1531.  
  1532.      _CCCC                Delete the current character through the end of line and
  1533.                       enter input mode.  Equivalent to _cccc_$$$$.
  1534.  
  1535.      _SSSS                Equivalent to _cccc_cccc.
  1536.  
  1537.      _DDDD                Delete the current character through the end of line.
  1538.                       Equivalent to _dddd_$$$$.
  1539.  
  1540.      [_c_o_u_n_t]_dddd_m_o_t_i_o_n
  1541.      _dddd[_c_o_u_n_t]_m_o_t_i_o_n   Delete current character through the character that
  1542.                       _m_o_t_i_o_n would move to.  If _m_o_t_i_o_n is _dddd, the entire line
  1543.                       is deleted.
  1544.  
  1545.      _iiii                Enter input mode and insert text before the current
  1546.                       character.
  1547.  
  1548.      _IIII                Insert text before the beginning of the line.
  1549.                       Equivalent to _0000_iiii.
  1550.  
  1551.      [_c_o_u_n_t]_PPPP         Place the previous text modification before the cursor.
  1552.  
  1553.      [_c_o_u_n_t]_pppp         Place the previous text modification after the cursor.
  1554.  
  1555.      _RRRR                Enter input mode and replace characters on the screen
  1556.                       with characters you type overlay fashion.
  1557.  
  1558.      [_c_o_u_n_t]_rrrr_c        Replace the _c_o_u_n_t character(s) starting at the current
  1559.                       cursor position with _c, and advance the cursor.
  1560.  
  1561.      [_c_o_u_n_t]_xxxx         Delete current character.
  1562.  
  1563.      [_c_o_u_n_t]_XXXX         Delete preceding character.
  1564.  
  1565.      [_c_o_u_n_t]_....         Repeat the previous text modification command.
  1566.  
  1567.      [_c_o_u_n_t]_~~~~         Invert the case of the _c_o_u_n_t character(s) starting at
  1568.                       the current cursor position and advance the cursor.
  1569.  
  1570.      [_c_o_u_n_t]_____         Causes the _c_o_u_n_t word of the previous command to be
  1571.                       appended and input mode entered.  The last word is used
  1572.                       if _c_o_u_n_t is omitted.
  1573.  
  1574.      _****                Causes an _**** to be appended to the current word and
  1575.                       filename generation attempted.  If no match is found, it
  1576.                       rings the bell.  Otherwise, the word is replaced by the
  1577.                       matching pattern and input mode is entered.
  1578.  
  1579.  
  1580.  
  1581.                                                                        PPPPaaaaggggeeee 22224444
  1582.  
  1583.  
  1584.  
  1585.  
  1586.  
  1587.  
  1588. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1589.  
  1590.  
  1591.  
  1592.      _\\\\                Filename completion.  Replaces the current word with the
  1593.                       longest common prefix of all filenames matching the
  1594.                       current word with an asterisk appended.  If the match is
  1595.                       unique, a _//// is appended if the file is a directory and a
  1596.                       space is appended if the file is not a directory.
  1597.  
  1598.    OOOOtttthhhheeeerrrr EEEEddddiiiitttt CCCCoooommmmmmmmaaaannnnddddssss
  1599.      Miscellaneous commands.
  1600.  
  1601.      [_c_o_u_n_t]_yyyy_m_o_t_i_o_n
  1602.      _yyyy[_c_o_u_n_t]_m_o_t_i_o_n   Yank current character through character that _m_o_t_i_o_n
  1603.                       would move the cursor to and puts them into the delete
  1604.                       buffer.  The text and cursor are unchanged.
  1605.  
  1606.      _YYYY                Yanks from current position to end of line.  Equivalent
  1607.                       to _yyyy_$$$$.
  1608.  
  1609.      _uuuu                Undo the last text modifying command.
  1610.  
  1611.      _UUUU                Undo all the text modifying commands performed on the
  1612.                       line.
  1613.  
  1614.      [_c_o_u_n_t]_vvvv         Returns the command _ffff_cccc _----_eeee _$$$$_{{{{_VVVV_IIII_SSSS_UUUU_AAAA_LLLL_::::_----_$$$$_{{{{_EEEE_DDDD_IIII_TTTT_OOOO_RRRR_::::_----_vvvv_iiii_}}}}_}}}} _c_o_u_n_t
  1615.                       in the input buffer.  If _c_o_u_n_t is omitted, the current
  1616.                       line is used.
  1617.  
  1618.      _^^^^_LLLL               Line feed and print current line.  Has effect only in
  1619.                       control mode.
  1620.  
  1621.      _^^^^_JJJJ               (New line) Execute the current line, regardless of mode.
  1622.  
  1623.      _^^^^_MMMM               (Return) Execute the current line, regardless of mode.
  1624.  
  1625.      _####                Sends the line after inserting a _#### in front of the line.
  1626.                       Useful for causing the current line to be inserted in
  1627.                       the history without being executed.
  1628.  
  1629.      _====                List the filenames that match the current word if an
  1630.                       asterisk were appended it.
  1631.  
  1632.      _@@@@_l_e_t_t_e_r          Your alias list is searched for an alias by the name
  1633.                       ______l_e_t_t_e_r and if an alias of this name is defined, its
  1634.                       value is inserted on the input queue for processing.
  1635.  
  1636.    SSSSppppeeeecccciiiiaaaallll CCCCoooommmmmmmmaaaannnnddddssss
  1637.      The following simple-commands are executed in the shell process.
  1638.      Input/output redirection is permitted.  Unless otherwise indicated, the
  1639.      output is written on file descriptor 1 and the exit status, when there is
  1640.      no syntax error, is zero.  Commands that are followed by one or two
  1641.      asterisks, * or **, are treated specially in the following ways:
  1642.  
  1643.  
  1644.  
  1645.  
  1646.  
  1647.                                                                        PPPPaaaaggggeeee 22225555
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1655.  
  1656.  
  1657.  
  1658.      1.   Variable assignment lists preceding the command remain in effect
  1659.           when the command completes.
  1660.  
  1661.      2.   I/O redirections are processed after variable assignments.
  1662.  
  1663.      3.   Errors cause a script that contains them to abort.
  1664.  
  1665.      4.   Words, following a command followed by ** that are in the format of
  1666.           a variable assignment, are expanded with the same rules as a
  1667.           variable assignment.  This means that tilde substitution is
  1668.           performed after the _==== sign and word splitting and filename
  1669.           generation are not performed.
  1670.  
  1671.      _:::: [ _a_r_g ... ]     *
  1672.           The command only expands parameters.
  1673.  
  1674.      _.... _f_i_l_e [ _a_r_g ... ]     *
  1675.           Read the complete _f_i_l_e and execute the commands.  The commands are
  1676.           executed in the current shell environment.  The search path
  1677.           specified by _PPPP_AAAA_TTTT_HHHH is used to find the directory containing _f_i_l_e.  If
  1678.           any arguments _a_r_g are given, they become the positional parameters.
  1679.           Otherwise the positional parameters are unchanged.  The exit status
  1680.           is the exit status of the last command executed.
  1681.  
  1682.      _aaaa_llll_iiii_aaaa_ssss [ _----_tttt_xxxx ] [ _n_a_m_e[_====_v_a_l_u_e ] ] ...     **
  1683.           _A_l_i_a_s with no arguments prints the list of aliases in the form
  1684.           _n_a_m_e=_v_a_l_u_e on standard output.  An _a_l_i_a_s is defined for each name
  1685.           whose _v_a_l_u_e is given.  A trailing space in _v_a_l_u_e causes the next
  1686.           word to be checked for alias substitution.  The _----_tttt flag is used to
  1687.           set and list tracked aliases.  The value of a tracked alias is the
  1688.           full pathname corresponding to the given _n_a_m_e.  The value becomes
  1689.           undefined when the value of _PPPP_AAAA_TTTT_HHHH is reset but the aliases remain
  1690.           tracked.  Without the _----_tttt flag, for each _n_a_m_e in the argument list
  1691.           for which no _v_a_l_u_e is given, the name and value of the alias is
  1692.           printed.  The _----_xxxx flag is used to set or print exported aliases.  An
  1693.           exported alias is defined for scripts invoked by name.  The exit
  1694.           status is nonzero if a _n_a_m_e is given, but no value, for which no
  1695.           alias has been defined.
  1696.  
  1697.      _bbbb_gggg [ _j_o_b... ]
  1698.           This command is only on systems that support job control.  Puts each
  1699.           specified _j_o_b into the background.  The current job is put in the
  1700.           background if _j_o_b is not specified.  See JJJJoooobbbbssss for a description of
  1701.           the format of _j_o_b.
  1702.  
  1703.      _bbbb_rrrr_eeee_aaaa_kkkk [ _n ]     *
  1704.           Exit from the enclosing _ffff_oooo_rrrr, _wwww_hhhh_iiii_llll_eeee, _uuuu_nnnn_tttt_iiii_llll or _ssss_eeee_llll_eeee_cccc_tttt loop, if any.
  1705.           If _n is specified, break _n levels.
  1706.  
  1707.      _cccc_oooo_mmmm_mmmm_aaaa_nnnn_dddd [ _----_pppp ] _c_o_m_m_a_n_d__n_a_m_e [ _a_r_g_u_m_e_n_t ... ]
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.                                                                        PPPPaaaaggggeeee 22226666
  1714.  
  1715.  
  1716.  
  1717.  
  1718.  
  1719.  
  1720. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1721.  
  1722.  
  1723.  
  1724.      _cccc_oooo_mmmm_mmmm_aaaa_nnnn_dddd [ _----_vvvv _|||| _----_VVVV ] _c_o_m_m_a_n_d__n_a_m_e
  1725.           The _c_o_m_m_a_n_d utility causes the shell to treat the arguments as a
  1726.           simple command, suppressing the shell function lookup.  If the
  1727.           _c_o_m_m_a_n_d__n_a_m_e is the same as the name of one of the special builtin
  1728.           utilities, the special properties in the enumerated list at the
  1729.           beginning of SSSSppppeeeecccciiiiaaaallll CCCCoooommmmmmmmaaaannnnddddssss section do not occur.  In every other
  1730.           respect, if _c_o_m_m_a_n_d__n_a_m_e is not the name of a function, the effect
  1731.           of _c_o_m_m_a_n_d are the same as omitting _c_o_m_m_a_n_d.
  1732.  
  1733.           The _----_pppp option performs the search using a defualt value for _P_A_T_H
  1734.           that is guaranteed to find all of the standard utilities.
  1735.  
  1736.           The _----_vvvv option writes a string to standard output that indicates the
  1737.           pathname or command that will be used by the shell, in the current
  1738.           execution environment, to invoke _c_o_m_m_a_n_d__n_a_m_e.
  1739.  
  1740.           The _----_VVVV option writes a string to standard output that indicates how
  1741.           the name given in the _c_o_m_m_a_n_d__n_a_m_e operand is interpreted by the
  1742.           shell in the current shell execution environment.  It indicates in
  1743.           which of the following categories _c_o_m_m_a_n_d__n_a_m_e falls and include the
  1744.           information stated:
  1745.  
  1746.           Utilities, regular builtin utilities, and any implementation-
  1747.           provided functions that are found using the _P_A_T_H variable are
  1748.           identified as such and include the absolute pathname in the string.
  1749.  
  1750.           Other shell functions are identified as functions.
  1751.  
  1752.           Aliases are identified as aliases and their definitions are included
  1753.           in the string.
  1754.  
  1755.           Special builtin utilities are identified as special builtin
  1756.           utilities.
  1757.  
  1758.           Regular builtin utilities not associated with a _P_A_T_H search are
  1759.           identified as regular builtin utilities.
  1760.  
  1761.           Shell reserved words are identified as reserved words.
  1762.  
  1763.      _cccc_oooo_nnnn_tttt_iiii_nnnn_uuuu_eeee [ _n ]     *
  1764.           Resume the next iteration of the enclosing _ffff_oooo_rrrr, _wwww_hhhh_iiii_llll_eeee, _uuuu_nnnn_tttt_iiii_llll or
  1765.           _ssss_eeee_llll_eeee_cccc_tttt loop.  If _n is specified, resume at the _n-th enclosing loop.
  1766.  
  1767.      _cccc_dddd _[[[[ _----_LLLL_PPPP _]]]]   _a_r_g
  1768.      _cccc_dddd _[[[[ _----_LLLL_PPPP _]]]]  _o_l_d _n_e_w
  1769.           This command can be in either of two forms.  In the first form it
  1770.           changes the current directory to _a_r_g.  If _a_r_g is _---- the directory is
  1771.           changed to the previous directory.  The shell variable _HHHH_OOOO_MMMM_EEEE is the
  1772.           default _a_r_g.  The variable _PPPP_WWWW_DDDD is set to the current directory.  The
  1773.           shell variable _CCCC_DDDD_PPPP_AAAA_TTTT_HHHH defines the search path for the directory
  1774.           containing _a_r_g.  Alternative directory names are separated by a
  1775.           colon (_::::).  The default path is _<<<<_nnnn_uuuu_llll_llll_>>>> (specifying the current
  1776.  
  1777.  
  1778.  
  1779.                                                                        PPPPaaaaggggeeee 22227777
  1780.  
  1781.  
  1782.  
  1783.  
  1784.  
  1785.  
  1786. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1787.  
  1788.  
  1789.  
  1790.           directory).  Note that the current directory is specified by a null
  1791.           pathname, which can appear immediately after the equal sign or
  1792.           between the colon delimiters anywhere else in the path list.  If _a_r_g
  1793.           begins with a _//// the search path is not used.  Otherwise, each
  1794.           directory in the path is searched for _a_r_g.
  1795.  
  1796.           The second form of _cccc_dddd substitutes the string _n_e_w for the string _o_l_d
  1797.           in the current directory name, _PPPP_WWWW_DDDD and tries to change to this new
  1798.           directory.
  1799.  
  1800.           If you specify _----_LLLL, _ssss_hhhh does not resolve symbolic links.  This is the
  1801.           default behavior.
  1802.  
  1803.           If you specify _----_PPPP, _ssss_hhhh resolves all symbolic links.
  1804.  
  1805.           If you specify both _----_LLLL and _----_PPPP, the last option specifies the
  1806.           behavior.
  1807.  
  1808.           The _cccc_dddd command may not be executed by restricted _ssss_hhhh.
  1809.  
  1810.      _eeee_cccc_hhhh_oooo [ _a_r_g ... ]
  1811.           See _eeee_cccc_hhhh_oooo(1) for usage and description.
  1812.  
  1813.      _eeee_vvvv_aaaa_llll [ _a_r_g ... ]     *
  1814.           The arguments are read as input to the shell and the resulting
  1815.           command(s) executed.
  1816.  
  1817.      _eeee_xxxx_eeee_cccc [ _a_r_g ... ]     *
  1818.           If _a_r_g is given, the command specified by the arguments is executed
  1819.           in place of this shell without creating a new process.  Input/output
  1820.           arguments may appear and affect the current process.  If no
  1821.           arguments are given the effect of this command is to modify file
  1822.           descriptors as prescribed by the input/output redirection list.  In
  1823.           this case, any file descriptor numbers greater than 2 that are
  1824.           opened with this mechanism are closed when invoking another program.
  1825.  
  1826.      _eeee_xxxx_iiii_tttt [ _n ]     *
  1827.           Causes the shell to exit with the exit status specified by _n.  If _n
  1828.           is omitted the exit status is that of the last command executed.  An
  1829.           end-of-file also causes the shell to exit except for a shell which
  1830.           has the _i_g_n_o_r_e_e_o_f option (see _ssss_eeee_tttt below) turned on.
  1831.  
  1832.      _eeee_xxxx_pppp_oooo_rrrr_tttt [ _n_a_m_e[_====_v_a_l_u_e ] ] ...     **
  1833.           The given _n_a_m_es are marked for automatic export to the _e_n_v_i_r_o_n_m_e_n_t
  1834.           of subsequently-executed commands.
  1835.  
  1836.      _eeee_xxxx_pppp_oooo_rrrr_tttt _----_pppp     **
  1837.           When _----_pppp is specified, _e_x_p_o_r_t writes to the standard the output names
  1838.           and values of all exported variables, in the following format:
  1839.  
  1840.  
  1841.  
  1842.  
  1843.  
  1844.  
  1845.                                                                        PPPPaaaaggggeeee 22228888
  1846.  
  1847.  
  1848.  
  1849.  
  1850.  
  1851.  
  1852. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1853.  
  1854.  
  1855.  
  1856.                "export %s=%s\n",< _n_a_m_e >, < _v_a_l_u_e >
  1857.  
  1858.           The _----_pppp option allows portable access to the values that can be saved
  1859.           and later restored using, for instance, a dot script.
  1860.  
  1861.           The shell formats the output, including the proper use of quoting,
  1862.           so that it is suitable for reinput to the shell as commands that
  1863.           achieve the same exporting results.
  1864.  
  1865.      _ffff_cccc [ _----_eeee _e_n_a_m_e ] [ _----_nnnn_llll_rrrr ] [ _f_i_r_s_t [ _l_a_s_t ] ]
  1866.      _ffff_cccc _----_eeee _---- [ _o_l_d_====_n_e_w ] [ _c_o_m_m_a_n_d ]
  1867.      _ffff_cccc _----_ssss [ _o_l_d_====_n_e_w ] [ _f_i_r_s_t ]
  1868.           In the first form, a range of commands from _f_i_r_s_t to _l_a_s_t is
  1869.           selected from the last _HHHH_IIII_SSSS_TTTT_SSSS_IIII_ZZZZ_EEEE commands that were typed at the
  1870.           terminal.  The arguments _f_i_r_s_t and _l_a_s_t may be specified as a
  1871.           [+]number or as a string.  A string is used to locate the most
  1872.           recent command starting with the given string.  A negative number is
  1873.           used as an offset to the current command number.  If the flag _----_llll, is
  1874.           selected, the commands are listed on standard output.  Otherwise,
  1875.           the editor program _e_n_a_m_e is invoked on a file containing these
  1876.           keyboard commands.  If _e_n_a_m_e is not supplied, the value of the
  1877.           variable _FFFF_CCCC_EEEE_DDDD_IIII_TTTT (default _////_uuuu_ssss_rrrr_////_bbbb_iiii_nnnn_////_eeee_dddd) is used as the editor.  When
  1878.           editing is complete, the edited command(s) is executed.  If _l_a_s_t is
  1879.           not specified it is set to _f_i_r_s_t.  If _f_i_r_s_t is not specified the
  1880.           default is the previous command for editing and -16 for listing.
  1881.           The flag _----_rrrr reverses the order of the commands and the flag _----_nnnn
  1882.           suppresses command numbers when listing.  In the second form the
  1883.           _c_o_m_m_a_n_d is re-executed after the substitution _o_l_d_====_n_e_w is performed.
  1884.           In the third form the _c_o_m_m_a_n_d is re-executed after the substitution
  1885.           _o_l_d_====_n_e_w is performed without invoking an editor.
  1886.  
  1887.      _ffff_gggg [ _j_o_b... ]
  1888.           This command is only on systems that support job control.  Each _j_o_b
  1889.           specified is brought to the foreground.  Otherwise, the current job
  1890.           is brought into the foreground.  See JJJJoooobbbbssss for a description of the
  1891.           format of _j_o_b.
  1892.  
  1893.      _gggg_eeee_tttt_oooo_pppp_tttt_ssss _o_p_t_s_t_r_i_n_g _n_a_m_e [ _a_r_g ... ]
  1894.           Checks _a_r_g for legal options.  If _a_r_g is omitted, the positional
  1895.           parameters are used.  An option argument begins with a _++++ or a _----.  An
  1896.           option not beginning with _++++ or _---- or the argument _----_---- ends the
  1897.           options.  _o_p_t_s_t_r_i_n_g contains the letters that _gggg_eeee_tttt_oooo_pppp_tttt_ssss recognizes.
  1898.           If a letter is followed by a _::::, that option is expected to have an
  1899.           argument.  The options can be separated from the argument by blanks.
  1900.  
  1901.           _gggg_eeee_tttt_oooo_pppp_tttt_ssss places the next option letter it finds inside variable _n_a_m_e
  1902.           each time it is invoked with a _++++ prepended when _a_r_g begins with a _++++.
  1903.           The index of the next _a_r_g is stored in _OOOO_PPPP_TTTT_IIII_NNNN_DDDD.  The option argument,
  1904.           if any, gets stored in _OOOO_PPPP_TTTT_AAAA_RRRR_GGGG.  Whenever the shell is invoked,
  1905.           _OOOO_PPPP_TTTT_IIII_NNNN_DDDD is initialized to 1.
  1906.  
  1907.  
  1908.  
  1909.  
  1910.  
  1911.                                                                        PPPPaaaaggggeeee 22229999
  1912.  
  1913.  
  1914.  
  1915.  
  1916.  
  1917.  
  1918. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1919.  
  1920.  
  1921.  
  1922.           A leading _:::: in _o_p_t_s_t_r_i_n_g causes _gggg_eeee_tttt_oooo_pppp_tttt_ssss to store the letter of an
  1923.           invalid option in _OOOO_PPPP_TTTT_AAAA_RRRR_GGGG, and to set _n_a_m_e to _????  for an unknown
  1924.           option and to _:::: when a required option is missing.  Otherwise,
  1925.           _gggg_eeee_tttt_oooo_pppp_tttt_ssss prints an error message.  The exit status is nonzero when
  1926.           there are no more options.
  1927.  
  1928.      _jjjj_oooo_bbbb_ssss [ _----_llll_nnnn_pppp ] [ _j_o_b ... ]
  1929.           Lists information about each given job; or all active jobs if _j_o_b is
  1930.           omitted.  The _----_llll flag lists process ids in addition to the normal
  1931.           information.  The _----_nnnn flag only displays jobs that have stopped or
  1932.           exited since last notified.  The _----_pppp flag causes only the process
  1933.           group to be listed.  See JJJJoooobbbbssss for a description of the format of
  1934.           _j_o_b.
  1935.  
  1936.      _kkkk_iiii_llll_llll [ -_s_i_g ] _j_o_b ...
  1937.      _kkkk_iiii_llll_llll [ -_s_i_g ] -1
  1938.      _kkkk_iiii_llll_llll _----_ssss _s_i_g_n_a_l__n_a_m_e _j_o_b ...
  1939.      _kkkk_iiii_llll_llll _----_llll [ _e_x_i_t__s_t_a_t_u_s ]
  1940.           Sends either the TERM (terminate) signal or the specified signal to
  1941.           the specified jobs or processes.  In the second form, the TERM
  1942.           (terminate) or specified signal is sent to all processes owned by
  1943.           the user.  Signals are either given by number or by names (as given
  1944.           in _////_uuuu_ssss_rrrr_////_iiii_nnnn_cccc_llll_uuuu_dddd_eeee_////_ssss_iiii_gggg_nnnn_aaaa_llll_...._hhhh, stripped of the prefix ``SIG'').  If the
  1945.           signal being sent is TERM (terminate) or HUP (hangup), the job or
  1946.           process is sent a CONT (continue) signal if it is stopped.  The
  1947.           argument _j_o_b can the process id of a process that is not a member of
  1948.           one of the active jobs.  See JJJJoooobbbbssss for a description of the format of
  1949.           _j_o_b.  In the fourth form, _kkkk_iiii_llll_llll _----_llll, the signal numbers and names are
  1950.           listed.  If an _e_x_i_t__s_t_a_t_u_s operand is given and it is the unsigned
  1951.           decimal integer value of a signal number, the _s_i_g_n_a_l__n_a_m_e (the
  1952.           specification-defined symbolic constant name without the ``SIG''
  1953.           prefix) corresponding to that signal is written.
  1954.  
  1955.      _llll_eeee_tttt _a_r_g ...
  1956.           Each _a_r_g is a separate _a_r_i_t_h_m_e_t_i_c _e_x_p_r_e_s_s_i_o_n to be evaluated.  See
  1957.           AAAArrrriiiitttthhhhmmmmeeeettttiiiicccc EEEEvvvvaaaalllluuuuaaaattttiiiioooonnnn above, for a description of arithmetic
  1958.           expression evaluation.
  1959.  
  1960.           The exit status is 0 if the value of the last expression is nonzero,
  1961.           and 1 otherwise.
  1962.  
  1963.      _llll_iiii_mmmm_iiii_tttt [ _----_hhhh ] _r_e_s_o_u_r_c_e _m_a_x_i_m_u_m-_u_s_e
  1964.           This is the Bourne shell version included for backward
  1965.           compatibility.  Limits the consumption by the current process and
  1966.           each process it creates to not individually exceed _m_a_x_i_m_u_m-_u_s_e on
  1967.           the specified _r_e_s_o_u_r_c_e.  If no _m_a_x_i_m_u_m-_u_s_e is given, then the
  1968.           current limit is printed; if no _r_e_s_o_u_r_c_e is given, then all
  1969.           limitations are given.  If the ----hhhh flag is given, the hard limits are
  1970.           used instead of the current limits.  The hard limits impose a
  1971.           ceiling on the values of the current limits.  Only the superuser can
  1972.           raise the hard limits, but a user can lower or raise the current
  1973.           limits within the legal range.
  1974.  
  1975.  
  1976.  
  1977.                                                                        PPPPaaaaggggeeee 33330000
  1978.  
  1979.  
  1980.  
  1981.  
  1982.  
  1983.  
  1984. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  1985.  
  1986.  
  1987.  
  1988.           Resources controllable currently include _c_p_u_t_i_m_e, the maximum number
  1989.           of cpu-seconds to be used by each process, _f_i_l_e_s_i_z_e, the largest
  1990.           single file that can be created, _d_a_t_a_s_i_z_e, the maximum growth of the
  1991.           data region via _s_b_r_k(2) beyond the end of the program text,
  1992.           _s_t_a_c_k_s_i_z_e, the maximum size of the automatically-extended stack
  1993.           region, _c_o_r_e_d_u_m_p_s_i_z_e, the size of the largest core dump created,
  1994.           _m_e_m_o_r_y_u_s_e, the maximum amount of physical memory a process can have
  1995.           allocated to it at a given time, _d_e_s_c_r_i_p_t_o_r_s, the maximum number of
  1996.           open files, _v_m_e_m_o_r_y, the maximum total virtual size of the process,
  1997.           including text, data, heap, shared memory, mapped files, stack, and
  1998.           so on, and _t_h_r_e_a_d_s, the maximum number of _p_t_h_r_e_a_d_s(5) the process
  1999.           may create.
  2000.  
  2001.           The _m_a_x_i_m_u_m-_u_s_e can be given as a (floating point or integer) number
  2002.           followed by a scale factor.  For all limits other than _c_p_u_t_i_m_e and
  2003.           _t_h_r_e_a_d_s the default scale is kkkk or kkkkiiiilllloooobbbbyyyytttteeeessss (1024 bytes); a scale
  2004.           factor of mmmm or mmmmeeeeggggaaaabbbbyyyytttteeeessss can also be used.  For _c_p_u_t_i_m_e the default
  2005.           scaling is sssseeeeccccoooonnnnddddssss, while mmmm for minutes or hhhh for hours, or a time of
  2006.           the form _m_m::::_s_s giving minutes and seconds can be used.
  2007.  
  2008.           For both _r_e_s_o_u_r_c_e names and scale factors, unambiguous prefixes of
  2009.           the names suffice.
  2010.  
  2011.      _nnnn_eeee_wwww_gggg_rrrr_pppp [ _----_llll ] [ _a_r_g ]     *
  2012.      _nnnn_eeee_wwww_gggg_rrrr_pppp [ _---- ] [ _a_r_g ]     *
  2013.           Equivalent to _eeee_xxxx_eeee_cccc _////_uuuu_ssss_rrrr_////_bbbb_iiii_nnnn_////_nnnn_eeee_wwww_gggg_rrrr_pppp _a_r_g.  The _----_llll (ell) or the _----
  2014.           option change the environment to what would be expected if the user
  2015.           actually logged in again.
  2016.  
  2017.      _pppp_rrrr_iiii_nnnn_tttt [ _----_RRRR_nnnn_pppp_rrrr_ssss_uuuu[_n ] ] [ _a_r_g ... ]
  2018.           The shell output mechanism.  With no flags or with flag _---- or _----_---- the
  2019.           arguments are printed on standard output as described by _eeee_cccc_hhhh_oooo(1).
  2020.           In raw mode, _----_RRRR or _----_rrrr, the escape conventions of _eeee_cccc_hhhh_oooo are ignored.
  2021.           The _----_RRRR option prints all subsequent arguments and options other than
  2022.           _----_nnnn.  The _----_pppp option causes the arguments to be written onto the pipe
  2023.           of the process spawned with _||||_&&&& instead of standard output.  The _----_ssss
  2024.           option causes the arguments to be written onto the history file
  2025.           instead of standard output.  The _----_uuuu flag can be used to specify a
  2026.           one digit file descriptor unit number _nnnn on which the output is
  2027.           placed.  The default is 1.  If the flag _----_nnnn is used, no newline is
  2028.           added to the output.
  2029.  
  2030.      _pppp_wwww_dddd _[[[[ _----_LLLL_PPPP _]]]]
  2031.           This is equivalent to _pppp_rrrr_iiii_nnnn_tttt _----_rrrr _---- _$$$$_PPPP_WWWW_DDDD if you have not changed _PPPP_WWWW_DDDD.
  2032.  
  2033.           If you specify _----_LLLL, _ssss_hhhh does not resolve symbolic links.  This is the
  2034.           default behavior.
  2035.  
  2036.           If you specify _----_PPPP, _ssss_hhhh resolves all symbolic links.
  2037.  
  2038.  
  2039.  
  2040.  
  2041.  
  2042.  
  2043.                                                                        PPPPaaaaggggeeee 33331111
  2044.  
  2045.  
  2046.  
  2047.  
  2048.  
  2049.  
  2050. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2051.  
  2052.  
  2053.  
  2054.           If you specify both _----_LLLL and _----_PPPP, the last option specifies the
  2055.           behavior.
  2056.  
  2057.      _rrrr_eeee_aaaa_dddd [ _----_pppp_rrrr_ssss_uuuu[ _n ] ] [ _n_a_m_e_????_p_r_o_m_p_t ] [ _n_a_m_e ... ]
  2058.           The shell input mechanism.  One line is read and is broken up into
  2059.           fields using the characters in _IIII_FFFF_SSSS as separators.  In raw mode, _----_rrrr_,,,,
  2060.           a _\\\\ at the end of a line does not signify line continuation.  The
  2061.           first field is assigned to the first _n_a_m_e, the second field to the
  2062.           second _n_a_m_e, and so on, with leftover fields assigned to the last
  2063.           _n_a_m_e.  The _----_pppp option causes the input line to be taken from the
  2064.           input pipe of a process spawned by the shell using _||||_&&&&.  If the _----_ssss
  2065.           flag is present, the input is saved as a command in the history
  2066.           file.  The flag _----_uuuu can be used to specify a one digit file
  2067.           descriptor unit to read from.  The file descriptor can be opened
  2068.           with the _eeee_xxxx_eeee_cccc special command.  The default value of _n is 0.  If
  2069.           _n_a_m_e is omitted _RRRR_EEEE_PPPP_LLLL_YYYY is used as the default _n_a_m_e.  The exit status
  2070.           is 0 unless an end-of-file is encountered.  An end-of-file with the
  2071.           _----_pppp option causes cleanup for this process so that another can be
  2072.           spawned.  If the first argument contains a _????, the remainder of this
  2073.           word is used as a _p_r_o_m_p_t on standard error when the shell is
  2074.           interactive.  The exit status is 0 unless an end-of-file is
  2075.           encountered.
  2076.  
  2077.      _rrrr_eeee_aaaa_dddd_oooo_nnnn_llll_yyyy [ _n_a_m_e[_====_v_a_l_u_e] ] ...     **
  2078.           The given _n_a_m_es are marked readonly and these names cannot be
  2079.           changed by subsequent assignment.
  2080.  
  2081.      _rrrr_eeee_aaaa_dddd_oooo_nnnn_llll_yyyy _----_pppp     **
  2082.           When _----_pppp is specified, _r_e_a_d_o_n_l_y writes to the standard the output
  2083.           names and values of all read-only variables, in the following
  2084.           format:
  2085.  
  2086.                "readonly %s=%s\n",< _n_a_m_e >, < _v_a_l_u_e >
  2087.  
  2088.           The _----_pppp option allows portable access to the values that can be saved
  2089.           and later restored using, for instance, a dot script.
  2090.  
  2091.           The shell formats the output, including the proper use of quoting,
  2092.           so that it is suitable for reinput to the shell as commands that
  2093.           achieve the same attribute-setting results.
  2094.  
  2095.      _rrrr_eeee_tttt_uuuu_rrrr_nnnn [ _n ]     *
  2096.           Causes a shell _f_u_n_c_t_i_o_n to return to the invoking script with the
  2097.           return status specified by _n.  If _n is omitted the return status is
  2098.           that of the last command executed.  If _rrrr_eeee_tttt_uuuu_rrrr_nnnn is invoked while not
  2099.           in a _f_u_n_c_t_i_o_n or a _....  script, it is the same as an _eeee_xxxx_iiii_tttt.
  2100.  
  2101.      _ssss_eeee_tttt [ _----_aaaa_bbbb_CCCC_eeee_ffff_hhhh_kkkk_mmmm_nnnn_pppp_ssss_tttt_uuuu_vvvv_xxxx ] [ _----_oooo _o_p_t_i_o_n ] [ _----_AAAA _n_a_m_e ] [ _a_r_g ... ]     *
  2102.           The flags for this command have meaning as follows:
  2103.  
  2104.  
  2105.  
  2106.  
  2107.  
  2108.  
  2109.                                                                        PPPPaaaaggggeeee 33332222
  2110.  
  2111.  
  2112.  
  2113.  
  2114.  
  2115.  
  2116. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2117.  
  2118.  
  2119.  
  2120.           _----_AAAA   Array assignment.  Unset the variable _n_a_m_e and assign values
  2121.                sequentially from the list _a_r_g.  If _++++_AAAA is used, the variable
  2122.                _n_a_m_e is not unset first.
  2123.  
  2124.           _----_aaaa   All subsequent variables that are defined are automatically
  2125.                exported.
  2126.  
  2127.           _----_bbbb   Cause the shell to notify the user asynchronously of background
  2128.                job completions.  When the shell notifies the user a job has
  2129.                been completed, it may remove the job's process ID from the
  2130.                list of those known in the current shell execution environment.
  2131.                Asynchronous notification is not enabled by default.
  2132.  
  2133.           _----_CCCC   (Upper-case C) Prevent existing files from being overwritten by
  2134.                the shell's > redirection operator.  The >| redirection
  2135.                operator overrides this _n_o_c_l_o_b_b_e_r option for an individual
  2136.                file.
  2137.  
  2138.           _----_eeee   If a command has a nonzero exit status, execute the _EEEE_RRRR_RRRR trap,
  2139.                if set, and exit.  This mode is disabled while reading
  2140.                profiles.
  2141.  
  2142.           _----_ffff   Disables filename generation.
  2143.  
  2144.           _----_hhhh   Each command becomes a tracked alias when first encountered.
  2145.  
  2146.           _----_kkkk   All variable assignment arguments are placed in the environment
  2147.                for a command, not just those that precede the command name.
  2148.  
  2149.           _----_mmmm   Background jobs run in a separate process group and a line
  2150.                prints upon completion.  The exit status of background jobs is
  2151.                reported in a completion message.  On systems with job control,
  2152.                this flag is turned on automatically for interactive shells.
  2153.  
  2154.           _----_nnnn   Read commands and check them for syntax errors, but do not
  2155.                execute them.  Ignored for interactive shells.
  2156.  
  2157.           _----_oooo   The following argument can be one of the following option
  2158.                names:
  2159.  
  2160.                _aaaa_llll_llll_eeee_xxxx_pppp_oooo_rrrr_tttt    Same as _----_aaaa.
  2161.  
  2162.                _eeee_rrrr_rrrr_eeee_xxxx_iiii_tttt      Same as _----_eeee.
  2163.  
  2164.                _bbbb_gggg_nnnn_iiii_cccc_eeee       All background jobs are run at a lower priority.
  2165.                             This is the default mode.
  2166.  
  2167.                _eeee_mmmm_aaaa_cccc_ssss        Puts you in an _e_m_a_c_s style in-line editor for
  2168.                             command entry.
  2169.  
  2170.  
  2171.  
  2172.  
  2173.  
  2174.  
  2175.                                                                        PPPPaaaaggggeeee 33333333
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2183.  
  2184.  
  2185.  
  2186.                _iiii_gggg_nnnn_oooo_rrrr_eeee_eeee_oooo_ffff    The shell does not exit on end-of-file.  The
  2187.                             command _eeee_xxxx_iiii_tttt must be used.
  2188.  
  2189.                _kkkk_eeee_yyyy_wwww_oooo_rrrr_dddd      Same as _----_kkkk.
  2190.  
  2191.                _mmmm_aaaa_rrrr_kkkk_dddd_iiii_rrrr_ssss     All directory names resulting from filename
  2192.                             generation have a trailing _//// appended.
  2193.  
  2194.                _mmmm_oooo_nnnn_iiii_tttt_oooo_rrrr      Same as _----_mmmm.
  2195.  
  2196.                _nnnn_oooo_cccc_llll_oooo_bbbb_bbbb_eeee_rrrr    Same as _----_CCCC.
  2197.  
  2198.                _nnnn_oooo_eeee_xxxx_eeee_cccc       Same as _----_nnnn.
  2199.  
  2200.                _nnnn_oooo_gggg_llll_oooo_bbbb       Same as _----_ffff.
  2201.  
  2202.                _nnnn_oooo_llll_oooo_gggg        Do not save function definitions in history file.
  2203.  
  2204.                _nnnn_oooo_tttt_iiii_ffff_yyyy       Same as _----_bbbb.
  2205.  
  2206.                _nnnn_oooo_uuuu_nnnn_ssss_eeee_tttt      Same as _----_uuuu.
  2207.  
  2208.                _pppp_rrrr_iiii_vvvv_iiii_llll_eeee_gggg_eeee_dddd   Same as _----_pppp.
  2209.  
  2210.                _vvvv_eeee_rrrr_bbbb_oooo_ssss_eeee      Same as _----_vvvv.
  2211.  
  2212.                _tttt_rrrr_aaaa_cccc_kkkk_aaaa_llll_llll     Same as _----_hhhh.
  2213.  
  2214.                _vvvv_iiii           Puts you in insert mode of a _vvvv_iiii style inline
  2215.                             editor until you hit escape character _0000_3333_3333.  This
  2216.                             puts you in move mode.  A return sends the line.
  2217.  
  2218.                _vvvv_iiii_rrrr_aaaa_wwww        Each character is processed as it is typed in _vvvv_iiii
  2219.                             mode.
  2220.  
  2221.                _xxxx_tttt_rrrr_aaaa_cccc_eeee       Same as _----_xxxx.
  2222.  
  2223.                If no option name is supplied the current option settings are
  2224.                printed.
  2225.  
  2226.           _----_pppp   Disables processing of the _$$$$_HHHH_OOOO_MMMM_EEEE_////_...._pppp_rrrr_oooo_ffff_iiii_llll_eeee file and uses the
  2227.                file _////_eeee_tttt_cccc_////_ssss_uuuu_iiii_dddd______pppp_rrrr_oooo_ffff_iiii_llll_eeee instead of the _EEEE_NNNN_VVVV file.  This mode is
  2228.                on whenever the effective uid (gid) is not equal to the real
  2229.                uid (gid).  Turning this off causes the effective uid and gid
  2230.                to be set to the real uid and gid.
  2231.  
  2232.           _----_ssss   Sort the positional parameters lexicographically.
  2233.  
  2234.           _----_tttt   Exit after reading and executing one command.
  2235.  
  2236.  
  2237.  
  2238.  
  2239.  
  2240.  
  2241.                                                                        PPPPaaaaggggeeee 33334444
  2242.  
  2243.  
  2244.  
  2245.  
  2246.  
  2247.  
  2248. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2249.  
  2250.  
  2251.  
  2252.           _----_uuuu   Treat unset parameters as an error when substituting.
  2253.  
  2254.           _----_vvvv   Print shell input lines as they are read.
  2255.  
  2256.           _----_xxxx   Print commands and their arguments as they are executed.
  2257.  
  2258.           _----    Turns off _----_xxxx and _----_vvvv flags and stops examining arguments for
  2259.                flags.
  2260.  
  2261.           _----_----   Do not change any of the flags; useful in setting _$$$$_1111 to a value
  2262.                beginning with _----.  If no arguments follow this flag the
  2263.                positional parameters are unset.
  2264.  
  2265.           Using _++++ rather than _---- causes these flags to be turned off.  These
  2266.           flags can also be used upon invocation of the shell.  The current
  2267.           set of flags may be found in _$$$$_----.  Unless _----_AAAA is specified, the
  2268.           remaining arguments are positional parameters and are assigned, in
  2269.           order, to _$$$$_1111 _$$$$_2222 ....  If no arguments are given the names and values
  2270.           of all variables are printed on the standard output.
  2271.  
  2272.      _ssss_hhhh_iiii_ffff_tttt [ _n ]     *
  2273.           The positional parameters from _$$$$_n_++++_1111 ...  are renamed _$$$$_1111 ..., default
  2274.           _n is 1.  The parameter _n can be any arithmetic expression that
  2275.           evaluates to a non-negative number less than or equal to _$$$$_####.
  2276.  
  2277.      _tttt_iiii_mmmm_eeee_ssss     *
  2278.           Print the accumulated user and system times for the shell and for
  2279.           processes run from the shell.
  2280.  
  2281.      _tttt_rrrr_aaaa_pppp [ _a_r_g ] [ _s_i_g ] ...     *
  2282.           _a_r_g is a command to be read and executed when the shell receives
  2283.           signal(s) _s_i_g.  (Note that _a_r_g is scanned once when the trap is set
  2284.           and once when the trap is taken.)  Each _s_i_g can be given as a number
  2285.           or as the name of the signal.  Trap commands are executed in order
  2286.           of signal number.  Any attempt to set a trap on a signal that was
  2287.           ignored on entry to the current shell is ineffective.  If _a_r_g is
  2288.           omitted or is _----, all trap(s) _s_i_g are reset to their original values.
  2289.           If _a_r_g is the null string this signal is ignored by the shell and by
  2290.           the commands it invokes.  If _s_i_g is _EEEE_RRRR_RRRR, _a_r_g is executed whenever a
  2291.           command has a nonzero exit status.  _s_i_g is _DDDD_EEEE_BBBB_UUUU_GGGG _a_r_g is executed
  2292.           after each command.  If _s_i_g is _0000 or _EEEE_XXXX_IIII_TTTT and the _tttt_rrrr_aaaa_pppp statement is
  2293.           executed inside the body of a function, the command _a_r_g is executed
  2294.           after the function completes.  If _s_i_g is _0000 or _EEEE_XXXX_IIII_TTTT for a _tttt_rrrr_aaaa_pppp set
  2295.           outside any function the command _a_r_g is executed on exit from the
  2296.           shell.  The _tttt_rrrr_aaaa_pppp command with no arguments prints a list of commands
  2297.           associated with each signal number.
  2298.  
  2299.      _tttt_yyyy_pppp_eeee_ssss_eeee_tttt [ _++++_____HHHH_LLLL_RRRR_ZZZZ_ffff_iiii_llll_rrrr_tttt_uuuu_xxxx[_n] ] [ _n_a_m_e[_====_v_a_l_u_e ] ] ...     **
  2300.           Sets attributes and values for shell variables.  When invoked inside
  2301.           a function, a new instance of the variable _n_a_m_e is created.  The
  2302.           parameter value and type are restored when the function completes.
  2303.           The following list of attributes may be specified:
  2304.  
  2305.  
  2306.  
  2307.                                                                        PPPPaaaaggggeeee 33335555
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2315.  
  2316.  
  2317.  
  2318.           _----_HHHH   This flag provides UNIX to host-name file mapping on non-UNIX
  2319.                machines.
  2320.  
  2321.           _----_LLLL   Left justify and remove leading blanks from _v_a_l_u_e.  If _n is
  2322.                nonzero it defines the width of the field, otherwise it is
  2323.                determined by the width of the value of first assignment.  When
  2324.                the variable is assigned to, it is filled on the right with
  2325.                blanks or truncated, if necessary, to fit into the field.
  2326.                Leading zeros are removed if the _----_ZZZZ flag is also set.  The _----_RRRR
  2327.                flag is turned off.
  2328.  
  2329.           _----_RRRR   Right justify and fill with leading blanks.  If _n is nonzero it
  2330.                defines the width of the field, otherwise it is determined by
  2331.                the width of the value of first assignment.  The field is left
  2332.                filled with blanks or truncated from the end if the variable is
  2333.                reassigned.  The _LLLL flag is turned off.
  2334.  
  2335.           _----_ZZZZ   Right justify and fill with leading zeros if the first non-
  2336.                blank character is a digit and the _----_LLLL flag has not been set.
  2337.                If _n is nonzero it defines the width of the field, otherwise it
  2338.                is determined by the width of the value of first assignment.
  2339.  
  2340.           _----_ffff   The names refer to function names rather than variable names.
  2341.                No assignments can be made and the only other valid flags are
  2342.                _----_tttt, _----_uuuu and _----_xxxx.  The flag _----_tttt turns on execution tracing for this
  2343.                function.  The flag _----_uuuu causes this function to be marked
  2344.                undefined.  The _FFFF_PPPP_AAAA_TTTT_HHHH variable is searched to find the function
  2345.                definition when the function is referenced.  The flag _----_xxxx allows
  2346.                the function definition to remain in effect across shell
  2347.                procedures invoked by name.
  2348.  
  2349.           _----_iiii   Variable is an integer.  This makes arithmetic faster.  If _n is
  2350.                nonzero it defines the output arithmetic base, otherwise the
  2351.                first assignment determines the output base.
  2352.  
  2353.           _----_llll   All upper-case characters converted to lower-case.  The upper-
  2354.                case flag, _----_uuuu is turned off.
  2355.  
  2356.           _----_rrrr   The given _n_a_m_es are marked readonly and these names cannot be
  2357.                changed by subsequent assignment.
  2358.  
  2359.           _----_tttt   Tags the variables.  Tags are user definable and have no
  2360.                special meaning to the shell.
  2361.  
  2362.           _----_uuuu   All lower-case characters are converted to upper-case
  2363.                characters.  The lower-case flag, _----_llll is turned off.
  2364.  
  2365.           _----_xxxx   The given _n_a_m_es are marked for automatic export to the
  2366.                _e_n_v_i_r_o_n_m_e_n_t of subsequently-executed commands.
  2367.  
  2368.  
  2369.  
  2370.  
  2371.  
  2372.  
  2373.                                                                        PPPPaaaaggggeeee 33336666
  2374.  
  2375.  
  2376.  
  2377.  
  2378.  
  2379.  
  2380. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2381.  
  2382.  
  2383.  
  2384.           Using _++++ rather than _---- causes these flags to be turned off.  If no
  2385.           _n_a_m_e arguments are given but flags are specified, a list of _n_a_m_e_s
  2386.           (and optionally the _vvvv_aaaa_llll_uuuu_eeee_ssss) of the _v_a_r_i_a_b_l_e_s which have these flags
  2387.           set is printed.  (Using _++++ rather than _---- keeps the values from being
  2388.           printed.)  If no _n_a_m_es and flags are given, the _n_a_m_e_s and _a_t_t_r_i_b_u_t_e_s
  2389.           of all _v_a_r_i_a_b_l_e_s are printed.
  2390.  
  2391.      _uuuu_llll_iiii_mmmm_iiii_tttt [ _----_[[[[_HHHH_SSSS_]]]]_[[[[_aaaa _|||| _cccc_dddd_ffff_nnnn_ssss_tttt_vvvv_mmmm_]]]] ]
  2392.      _uuuu_llll_iiii_mmmm_iiii_tttt [ _----_[[[[_HHHH_SSSS_]]]]_[[[[_cccc _|||| _dddd _|||| _ffff _|||| _nnnn _|||| _ssss _|||| _tttt _|||| _vvvv _|||| _mmmm_]]]] _]]]] _l_i_m_i_t
  2393.           _uuuu_llll_iiii_mmmm_iiii_tttt prints or sets hard or soft resource limits.  These limits
  2394.           are described in _gggg_eeee_tttt_rrrr_llll_iiii_mmmm_iiii_tttt(2).
  2395.  
  2396.           If _l_i_m_i_t is not present, _uuuu_llll_iiii_mmmm_iiii_tttt prints the specified limits.  Any
  2397.           number of limits may be printed at one time.  The _----_aaaa option prints
  2398.           all limits.
  2399.  
  2400.           If _l_i_m_i_t is present, _uuuu_llll_iiii_mmmm_iiii_tttt sets the specified limit to _l_i_m_i_t.  The
  2401.           string _uuuu_nnnn_llll_iiii_mmmm_iiii_tttt_eeee_dddd requests the largest valid limit.  Limits may be
  2402.           set for only one resource at a time.  Any user may set a soft limit
  2403.           to any value below the hard limit.  Any user may lower a hard limit.
  2404.           Only a privileged user may raise a hard limit; see _ssss_uuuu(1M).
  2405.  
  2406.           The _----_HHHH option specifies a hard limit.  The _----_SSSS option specifies a
  2407.           soft limit.  If neither option is specified, _uuuu_llll_iiii_mmmm_iiii_tttt sets both limits
  2408.           and prints the soft limit.
  2409.  
  2410.           The following options specify the resource whose limits are to be
  2411.           printed or set.  If no option is specified, the file size limit is
  2412.           printed or set.
  2413.  
  2414.           _----_cccc   maximum core file size (in 512-byte blocks)
  2415.  
  2416.           _----_dddd   maximum size of data segment or heap (in kbytes)
  2417.  
  2418.           _----_ffff   maximum file size (in 512-byte blocks)
  2419.  
  2420.           _----_nnnn   maximum file descriptor plus 1
  2421.  
  2422.           _----_ssss   maximum size of stack segment (in kbytes).  Note that if this
  2423.                is set too high, _ssss_pppp_rrrr_oooo_cccc(2) may fail.
  2424.  
  2425.           _----_tttt   maximum CPU time (in seconds)
  2426.  
  2427.           _----_vvvv   maximum size of virtual memory (in kbytes)
  2428.  
  2429.           _----_mmmm   maximum size of resident memory (in kbytes)
  2430.  
  2431.           If no option is given, _----_ffff is assumed.
  2432.  
  2433.      _uuuu_mmmm_aaaa_ssss_kkkk [ _----_SSSS ][ _m_a_s_k ]
  2434.           The user file-creation mask is set to _m_a_s_k [see _uuuu_mmmm_aaaa_ssss_kkkk(2)].  _m_a_s_k can
  2435.           either be an octal number or a symbolic value as described in
  2436.  
  2437.  
  2438.  
  2439.                                                                        PPPPaaaaggggeeee 33337777
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2447.  
  2448.  
  2449.  
  2450.           _cccc_hhhh_mmmm_oooo_dddd(1).  If a symbolic value is given, the new umask value is the
  2451.           complement of the result of applying _m_a_s_k to the complement of the
  2452.           previous umask value.  If _m_a_s_k is omitted, the current value of the
  2453.           mask is printed.  If _----_SSSS is specified, the symbolic output is in the
  2454.           following format:
  2455.  
  2456.                "u=%s,g=%s,o=%s\n", _o_w_n_e_r, _g_r_o_u_p, _o_t_h_e_r
  2457.  
  2458.           where the three values are permissions combinations of the letters
  2459.           from the set {r,w,x}.
  2460.  
  2461.      _uuuu_nnnn_aaaa_llll_iiii_aaaa_ssss _n_a_m_e ...
  2462.      _uuuu_nnnn_aaaa_llll_iiii_aaaa_ssss _----_aaaa
  2463.           The variables given by the list of _n_a_m_es are removed from the _a_l_i_a_s
  2464.           list.  In the second form, all alias definitions are removed from
  2465.           the current shell execution environment.
  2466.  
  2467.      _uuuu_nnnn_llll_iiii_mmmm_iiii_tttt [ _----_hhhh ] _r_e_s_o_u_r_c_e
  2468.           This is the Bourne shell version included for backward
  2469.           compatibility.  Removes the limitation on _r_e_s_o_u_r_c_e.  If no _r_e_s_o_u_r_c_e
  2470.           is specified, then all _r_e_s_o_u_r_c_e limitations are removed.  If ----hhhh is
  2471.           given, the corresponding hard limits are removed.  Only the
  2472.           superuser can do this. (See lllliiiimmmmiiiitttt above)
  2473.  
  2474.      _uuuu_nnnn_ssss_eeee_tttt [ _----_ffff_vvvv ] _n_a_m_e ...     *
  2475.           The variables given by the list of _n_a_m_es are unassigned, i.  e.,
  2476.           their values and attributes are erased.  Read-only variables cannot
  2477.           be unset.  If the flag, _----_vvvv, is set, the names refer to _v_a_r_i_a_b_l_e
  2478.           names.  This is the default when no options are specified.  If the
  2479.           flag, _----_ffff, is set, the names refer to _f_u_n_c_t_i_o_n names.  Unsetting
  2480.           _EEEE_RRRR_RRRR_NNNN_OOOO, _LLLL_IIII_NNNN_EEEE_NNNN_OOOO, _MMMM_AAAA_IIII_LLLL_CCCC_HHHH_EEEE_CCCC_KKKK, _OOOO_PPPP_TTTT_AAAA_RRRR_GGGG, _OOOO_PPPP_TTTT_IIII_NNNN_DDDD, _RRRR_AAAA_NNNN_DDDD_OOOO_MMMM, _SSSS_EEEE_CCCC_OOOO_NNNN_DDDD_SSSS, _TTTT_MMMM_OOOO_UUUU_TTTT,
  2481.           and _____ causes removes their special meaning even if they are
  2482.           subsequently assigned to.  Unsetting variables not previously set or
  2483.           null returns a value of 0.
  2484.  
  2485.      _wwww_aaaa_iiii_tttt [ _j_o_b ]     *
  2486.           Wait for the specified _j_o_b and report its termination status.  If
  2487.           _j_o_b is not given all currently active child processes are waited
  2488.           for.  The exit status from this command is that of the process
  2489.           waited for.  See JJJJoooobbbbssss for a description of the format of _j_o_b.
  2490.  
  2491.      _wwww_hhhh_eeee_nnnn_cccc_eeee [ _----_pppp_vvvv ] _n_a_m_e ...
  2492.           For each _n_a_m_e, indicate how it is interpreted if used as a command
  2493.           name.
  2494.  
  2495.           _----_vvvv   produces a more verbose report.
  2496.  
  2497.           _----_pppp   does a path search for _n_a_m_e even if name is an alias, a
  2498.                function, or a reserved word.
  2499.  
  2500.  
  2501.  
  2502.  
  2503.  
  2504.  
  2505.                                                                        PPPPaaaaggggeeee 33338888
  2506.  
  2507.  
  2508.  
  2509.  
  2510.  
  2511.  
  2512. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2513.  
  2514.  
  2515.  
  2516.    IIIInnnnvvvvooooccccaaaattttiiiioooonnnn
  2517.      If the shell is invoked by _eeee_xxxx_eeee_cccc(2), and the first character of argument
  2518.      zero (_$$$$_0000) is _----, the shell is assumed to be a _llll_oooo_gggg_iiii_nnnn shell and commands are
  2519.      read from _////_eeee_tttt_cccc_////_pppp_rrrr_oooo_ffff_iiii_llll_eeee and then from either _...._pppp_rrrr_oooo_ffff_iiii_llll_eeee in the current
  2520.      directory or _$$$$_HHHH_OOOO_MMMM_EEEE_////_...._pppp_rrrr_oooo_ffff_iiii_llll_eeee, if either file exists.  Next, commands are
  2521.      read from the filenamed by performing parameter substitution on the value
  2522.      of the environment variable _EEEE_NNNN_VVVV if the file exists.  If the _----_ssss flag is
  2523.      not present and _a_r_g is, a path search is performed on the first _a_r_g to
  2524.      determine the name of the script to execute.  The script _a_r_g must have
  2525.      read permission and any _ssss_eeee_tttt_uuuu_iiii_dddd and _ssss_eeee_tttt_gggg_iiii_dddd settings are ignored.  Commands
  2526.      are read as described below; the following flags are interpreted by the
  2527.      shell when it is invoked:
  2528.  
  2529.      _----_cccc _s_t_r_i_n_g   If the _----_cccc flag is present commands are read from _s_t_r_i_n_g.
  2530.  
  2531.      _----_ssss          If the _----_ssss flag is present or if no arguments remain, commands
  2532.                  are read from the standard input.  Shell output, except for
  2533.                  the output of the Special commands listed above, is written
  2534.                  to file descriptor 2.
  2535.  
  2536.      _----_iiii          If the _----_iiii flag is present or if the shell input and output
  2537.                  are attached to a terminal (as told by _iiii_oooo_cccc_tttt_llll(2)) this shell
  2538.                  is _i_n_t_e_r_a_c_t_i_v_e.  In this case TERM is ignored (so that _kkkk_iiii_llll_llll _0000
  2539.                  does not kill an interactive shell) and INTR is caught and
  2540.                  ignored (so that _wwww_aaaa_iiii_tttt is interruptible).  In all cases, QUIT
  2541.                  is ignored by the shell.
  2542.  
  2543.      _----_rrrr          If the _----_rrrr flag is present the shell is a restricted shell.
  2544.  
  2545.      The remaining flags and arguments are described under the _ssss_eeee_tttt command
  2546.      above.
  2547.  
  2548.    RRRReeeessssttttrrrriiiicccctttteeeedddd sssshhhh OOOOnnnnllllyyyy
  2549.      The restricted _ssss_hhhh is used to set up login names and execution
  2550.      environments whose capabilities are more controlled than those of the
  2551.      standard shell.  The actions of the restricted _ssss_hhhh are identical to those
  2552.      of _ssss_hhhh, except that the following are disallowed:
  2553.  
  2554.           Changing directory [see _cccc_dddd(1)]
  2555.           Setting the value of _SSSS_HHHH_EEEE_LLLL_LLLL, _EEEE_NNNN_VVVV, or _PPPP_AAAA_TTTT_HHHH
  2556.           Specifying path or command names containing _////
  2557.           Redirecting output (_>>>>, _>>>>_||||_,,,, _<<<<_>>>>_,,,, and _>>>>_>>>>)
  2558.  
  2559.      The restrictions above are enforced after _...._pppp_rrrr_oooo_ffff_iiii_llll_eeee and the _EEEE_NNNN_VVVV files are
  2560.      interpreted.
  2561.  
  2562.      When a command to be executed is found to be a shell procedure, the
  2563.      restricted _ssss_hhhh invokes _ssss_hhhh to execute it.  Thus, it is possible to provide
  2564.      to the end-user shell procedures that have access to the full power of
  2565.      the standard shell, while imposing a limited menu of commands; this
  2566.      scheme assumes that the end-user does not have write and execute
  2567.      permissions in the same directory.
  2568.  
  2569.  
  2570.  
  2571.                                                                        PPPPaaaaggggeeee 33339999
  2572.  
  2573.  
  2574.  
  2575.  
  2576.  
  2577.  
  2578. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2579.  
  2580.  
  2581.  
  2582.      The net effect of these rules is that the writer of the _...._pppp_rrrr_oooo_ffff_iiii_llll_eeee has
  2583.      complete control over user actions, by performing guaranteed setup
  2584.      actions and leaving the user in an appropriate directory (probably not
  2585.      the login directory).
  2586.  
  2587.      The system administrator often sets up a directory of commands (that is,
  2588.      _////_uuuu_ssss_rrrr_////_rrrr_bbbb_iiii_nnnn) that can be safely invoked by the restricted _ssss_hhhh.
  2589.  
  2590. EEEEXXXXIIIITTTT SSSSTTTTAAAATTTTUUUUSSSS
  2591.      Errors detected by the shell, such as syntax errors, cause the shell to
  2592.      return a nonzero exit status.  Otherwise, the shell returns the exit
  2593.      status of the last command executed (see also the _eeee_xxxx_iiii_tttt command above).
  2594.      If the shell is being used non-interactively, execution of the shell file
  2595.      is abandoned.  Run time errors detected by the shell are reported by
  2596.      printing the command or function name and the error condition.  If the
  2597.      line number that the error occurred on is greater than one, the line
  2598.      number is also printed in square brackets (_[[[[_]]]]) after the command or
  2599.      function name.
  2600.  
  2601.      If a command is not found, the exit status is _1111_2222_7777.  If the command name
  2602.      is found, but it is not an executable utility, the exit status is _1111_2222_6666.
  2603.      Applications that invoke utilities without using the shell should use
  2604.      these exit status values to report similar errors.
  2605.  
  2606.      If a command fails during word expansion or redirection, its exit status
  2607.      is greater than zero.
  2608.  
  2609.      Internally, for purposes of deciding if a command exits with a nonzero
  2610.      exit status, the shell recognises the entire status value retrieved for
  2611.      the command by the equivalent of the _w_a_i_t() function WEXITSTATUS macro.
  2612.      When reporting the exit status with the special parameter ?, the shell
  2613.      reports the full eight bits of exit status available.  The exit status of
  2614.      a command that terminated because it received a signal is reported as
  2615.      greater than _1111_2222_8888_....
  2616.  
  2617. FFFFIIIILLLLEEEESSSS
  2618.      /etc/passwd
  2619.      /etc/profile
  2620.      /etc/suid_profile
  2621.      $HOME/_....profile
  2622.      /tmp/sh*
  2623.      /dev/null
  2624.  
  2625. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  2626.      emacs(1), cat(1), cd(1), chmod(1), cut(1), echo(1), env(1), newgrp(1M),
  2627.      paste(1), stty(1), test(1), umask(1), vi(1), dup(2), exec(2), fork(2),
  2628.      ioctl(2), lseek(2), pipe(2), signal(2), ulimit(2), umask(2), wait(2),
  2629.      rand(3C), a.out(4), profile(4), environ(5).
  2630.  
  2631.      Morris I. Bolsky and David G. Korn, _T_h_e _K_o_r_n_S_h_e_l_l _C_o_m_m_a_n_d _a_n_d _P_r_o_g_r_a_m_m_i_n_g
  2632.      _L_a_n_g_u_a_g_e, Prentice Hall, 1989
  2633.  
  2634.  
  2635.  
  2636.  
  2637.                                                                        PPPPaaaaggggeeee 44440000
  2638.  
  2639.  
  2640.  
  2641.  
  2642.  
  2643.  
  2644. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2645.  
  2646.  
  2647.  
  2648. NNNNOOOOTTTTEEEESSSS
  2649.      If a command that is a _t_r_a_c_k_e_d _a_l_i_a_s is executed and then a command with
  2650.      the same name is installed in a directory in the search path before the
  2651.      directory where the original command was found, the shell continues to
  2652.      _eeee_xxxx_eeee_cccc the original command.  Use the _----_tttt option of the _aaaa_llll_iiii_aaaa_ssss command to
  2653.      correct this situation.
  2654.  
  2655.      Some very old shell scripts contain a _^^^^ as a synonym for the pipe
  2656.      character _||||.
  2657.  
  2658.      Using the _ffff_cccc builtin command within a compound command causes the whole
  2659.      command to disappear from the history file.
  2660.  
  2661.      The builtin command _.... _f_i_l_e reads the whole file before any commands are
  2662.      executed.  Therefore, _aaaa_llll_iiii_aaaa_ssss and _uuuu_nnnn_aaaa_llll_iiii_aaaa_ssss commands in the file do not apply
  2663.      to any functions defined in the file.
  2664.  
  2665.      Traps are not processed while a job is waiting for a foreground process.
  2666.      Thus, a trap on _CCCC_HHHH_LLLL_DDDD won't be executed until the foreground job
  2667.      terminates.
  2668.  
  2669.      Prior to IRIX Release 5.0, the _rrrr_ssss_hhhh command invoked the restricted shell.
  2670.      This restricted shell command is _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_rrrr_ssss_hhhh and it can be executed by
  2671.      using the full pathname.  Beginning with IRIX Release 5.0, the _rrrr_ssss_hhhh
  2672.      command is the remote shell.  See _rrrr_ssss_hhhh______bbbb_ssss_dddd(1C).
  2673.  
  2674.      Sometimes, particularly when using wildcards, the shell will fail to
  2675.      execute a command, and complain with the message
  2676.         aaaarrrrgggg lllliiiisssstttt ttttoooooooo lllloooonnnngggg
  2677.      This can often be avoided by using multiple commands, the _x_a_r_g_s(1)
  2678.      command, or by increasing the nnnnccccaaaarrrrggggssss kernel parameter with the
  2679.      _s_y_s_t_u_n_e(1m) command.
  2680.  
  2681. CCCCOOOOMMMMPPPPAAAATTTTIIIIBBBBIIIILLLLIIIITTTTYYYY IIIISSSSSSSSUUUUEEEESSSS
  2682.      To retain some backward compatibility to the Bourne shell, certain Korn
  2683.      shell features are controlled by how the shell is invoked and/or the
  2684.      current value of the environment variable ______XXXX_PPPP_GGGG.
  2685.  
  2686.      When the shell is invoked as _""""_ssss_hhhh_"""", the following features are performed
  2687.      only when the current value of the ______XXXX_PPPP_GGGG variable is equal to 1 (one):
  2688.  
  2689.           - command substitution of the form "$( command )"
  2690.           - arithmetic expression of the form "$(( expression ))"
  2691.           - tilde expansion of pathnames
  2692.           - parameter _$$$$_0000 within a function call is the name of the invoking shell script
  2693.           - unsetting variables, not previously set or null, returns 0
  2694.  
  2695.  
  2696.      When the shell is not invoked as _""""_ssss_hhhh_"""" and the real and effective uid and
  2697.      gid differ, the uid and gid are set to the effective uid and gid.
  2698.  
  2699.  
  2700.  
  2701.  
  2702.  
  2703.                                                                        PPPPaaaaggggeeee 44441111
  2704.  
  2705.  
  2706.  
  2707.  
  2708.  
  2709.  
  2710. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2711.  
  2712.  
  2713.  
  2714.      With all invocations of the shell, when the current value of the ______XXXX_PPPP_GGGG
  2715.      environment variable is equal to 1 (one), the _----_nnnn option of the builtin
  2716.      _eeee_cccc_hhhh_oooo command does not suppress the terminating newline and is treated as
  2717.      part of the output string.
  2718.  
  2719.      Additional incompatibilities are listed below and can be found in the
  2720.      Appendix of the _""""_TTTT_hhhh_eeee _KKKK_oooo_rrrr_nnnn_ssss_hhhh_eeee_llll_llll _CCCC_oooo_mmmm_mmmm_aaaa_nnnn_dddd _aaaa_nnnn_dddd _PPPP_rrrr_oooo_gggg_rrrr_aaaa_mmmm_mmmm_iiii_nnnn_gggg _LLLL_aaaa_nnnn_gggg_uuuu_aaaa_gggg_eeee_"""" _((((_BBBB_oooo_llll_ssss_kkkk_yyyy
  2721.      _&&&& _KKKK_oooo_rrrr_nnnn_;;;; _PPPP_rrrr_eeee_nnnn_tttt_iiii_cccc_eeee _HHHH_aaaa_llll_llll_))))
  2722.  
  2723.      The Korn shell is more restrictive with field comparisons in the builtin
  2724.      _tttt_eeee_ssss_tttt command:
  2725.  
  2726.           _[[[[ _""""_1111_0000_2222_4444_0000 _ffff_iiii_llll_eeee_nnnn_aaaa_mmmm_eeee_"""" _----_gggg_eeee _1111_0000_2222_4444_0000 _]]]]
  2727.  
  2728.      is accepted by the Bourne shell whereas the Korn shell gives a syntax
  2729.      error.
  2730.  
  2731.      The Korn shell _kkkk_iiii_llll_llll builtin command now handles the special process
  2732.      number (-1) for all process owned by the user.  (See the SSSSppppeeeecccciiiiaaaallll CCCCoooommmmmmmmaaaannnnddddssss
  2733.      section.)
  2734.  
  2735.      The _ffff_aaaa_llll_ssss_eeee command is a builtin for the Korn shell and cannot be defined
  2736.      as a function.
  2737.  
  2738.      The _cccc_hhhh_dddd_iiii_rrrr is a builtin alias to the _cccc_dddd command. When shell is invoked as
  2739.      "ksh", this alias is removed allowing _cccc_hhhh_dddd_iiii_rrrr to be defined as a function.
  2740.      When shell is invoked as "sh", this can also be accomplished by
  2741.      unaliasing _cccc_hhhh_dddd_iiii_rrrr and then defining it as a function.
  2742.  
  2743.      Some Korn shell internal variables are typeset as integers and setting
  2744.      them to non-numeric values will cause "bad number" error messages. They
  2745.      include _EEEE_RRRR_RRRR_NNNN_OOOO_,,,, _LLLL_IIII_NNNN_EEEE_NNNN_OOOO_,,,, _MMMM_AAAA_IIII_LLLL_CCCC_HHHH_EEEE_CCCC_KKKK_,,,, _OOOO_PPPP_TTTT_IIII_NNNN_DDDD_,,,, _PPPP_PPPP_IIII_DDDD_,,,, _RRRR_AAAA_NNNN_DDDD_OOOO_MMMM_,,,, _SSSS_EEEE_CCCC_OOOO_NNNN_DDDD_SSSS _aaaa_nnnn_dddd
  2746.      _TTTT_MMMM_OOOO_UUUU_TTTT_....
  2747.  
  2748.      The Korn shell evaluates variable assignment lists before I/O redirection
  2749.      unlike the Bourne shell in which order does not matter.
  2750.  
  2751.      The Bourne shell (bsh) has been modified to allow fullpath calls of
  2752.      Bourne shell builtins using the builtin name POSIX links to
  2753.      /sbin/builtin_exec.
  2754.  
  2755. IIIINNNNTTTTEEEERRRRNNNNAAAATTTTIIIIOOOONNNNAAAALLLLIIIIZZZZAAAATTTTIIIIOOOONNNN
  2756.      The shell accepts multibyte input for command line args, file names,
  2757.      environment variable names and values, variable arrays, function names,
  2758.      history files and shell scripts. Multibyte sequences accepted for the
  2759.      _iiii_ssss_pppp_hhhh_oooo_nnnn_oooo_gggg_rrrr_aaaa_mmmm_((((_)))) and _iiii_ssss_iiii_dddd_eeee_oooo_gggg_rrrr_aaaa_mmmm_((((_)))) subroutines are also allowed.
  2760.  
  2761.      _NNNN_oooo_tttt_eeee_:::: The _eeee_mmmm_aaaa_cccc_ssss line editing feature is currently supported only with the
  2762.      default _CCCC/_PPPP_OOOO_SSSS_IIII_XXXX locale.
  2763.  
  2764.  
  2765.  
  2766.  
  2767.  
  2768.  
  2769.                                                                        PPPPaaaaggggeeee 44442222
  2770.  
  2771.  
  2772.  
  2773.  
  2774.  
  2775.  
  2776. sssshhhh((((1111))))                                                                    sssshhhh((((1111))))
  2777.  
  2778.  
  2779.  
  2780.      _NNNN_oooo_tttt_eeee_:::: Changing the _LLLL_AAAA_NNNN_GGGG value during a shell session can produce
  2781.      undefined results when accessing e.g. variables created under a different
  2782.      locale.
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805.  
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813.  
  2814.  
  2815.  
  2816.  
  2817.  
  2818.  
  2819.  
  2820.  
  2821.  
  2822.  
  2823.  
  2824.  
  2825.  
  2826.  
  2827.  
  2828.  
  2829.  
  2830.  
  2831.  
  2832.  
  2833.  
  2834.  
  2835.                                                                        PPPPaaaaggggeeee 44443333
  2836.  
  2837.  
  2838.  
  2839.